Linux installed package checksum, RPM package file extraction

Source: Internet
Author: User

Installed Package Checksum

Rpm-v Installed package Name
-V verifies the files in the specified RPM package

Rpm-v PTH
No hints, no changes have been made since the installation

File extraction in RPM package

For example, to a system configuration file error operation, you can find the file it belongs to the RPM package, and then extract the file from the RPM package and overwrite the wrong operation file

Rpm2cpio Package Full Name | Cpio-idv. rpm Package File Absolute path
-I copy-in mode, restore
-D automatically create a new directory when restoring
-V shows the restore process

Rpm2cpio
Convert RPM packages to cpio format files

Cpio
is a standard tool for creating software archive files and extracting files from archive files

Mv/usr/bin/ls/tmp
Rpm-qf/usr/bin/ls
Coreutils-8.22-21.el7.x86_64
RPM-QPL anaconda-11.4.1.62-1.src.rpm
/usr/bin/ls
rpm2cpio/mnt/cd/packages/coreutils-8.22-21.el7.x86_64.rpm | Cpio-idv./usr/bin/ls
Extracted to the current directory
MV Ls/usr/bin

Linux installed package checksum, RPM package file extraction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.