How to unpack the RPM package

Source: Internet
Author: User

Sometimes we need a file in the RPM package, how to unpack the RPM package?

RPM includes packaging using the CPIO format, so you can turn it into cpio and unzip it as follows:

Rpm2cpio xxx.rpm | Cpio-div

For example:

[Email protected] tmp]# Rpm2cpio rpm-4.8.0-32.el6.x86_64.rpm |cpio-div
./bin/rpm
./etc/rpm
./usr/bin/rpm2cpio
./usr/bin/rpmdb
./usr/bin/rpmquery
./usr/bin/rpmsign
./usr/bin/rpmverify
./usr/lib/rpm
./usr/lib/rpm/macros
./usr/lib/rpm/platform
./usr/lib/rpm/platform/amd64-linux
。。。
./usr/share/man/ru/man8/rpm2cpio.8.gz
./usr/share/man/sk/man8/rpm.8.gz
./var/lib/rpm
4001 Blocks

How to unpack the RPM package

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.