Gangmax Blog

自由之思想,独立之精神

Check RPM Content on Mac

| Comments

On Mac I want to check the content of a RPM file, how to do it?

First you can extract the cpio file in the RPM file by any unzip tool like ”Dr.Unarchiver”, such as “protobuf25.cpio”.

Then run the following command:

1
2
# From "https://unix.stackexchange.com/questions/4664/open-a-rpm-on-a-mac":
cat protobuf25.cpio | cpio -id

Now you will find the extracted directories/files in your current directory.

Comments