11/07/2019

[How to] Extract rpm package on macOS



Extract RPM package on macOS to access its contents, which is especially useful for some old source packages.

Step1. Install rpm2cpio utility.

$ brew install rpm2cpio

Step2. Extract RPM package.


$ rpm2cpio.pl ~/Downloads/rdo-release-mitaka-7.noarch.rpm | cpio -idmv

./etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
./etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization-RDO
./etc/yum.repos.d/rdo-qemu-ev.repo
./etc/yum.repos.d/rdo-release.repo
./etc/yum.repos.d/rdo-testing.repo

Done.

Không có nhận xét nào:

Đăng nhận xét