Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using rpm -qlp I can get the content of an RPM package. How can I view the below scripts from the RPM package? (using say, cat, more or vi)

I want to print the following scripts (on my Linux machine) from inside the RPM package:

  • /home/Progect_ws/Progect/
  • /home/Progect_ws/DB_client/
#rpm -qlp CBS_Progect_WS-30_12.i386.rpm

share|improve this question

Use rpm2cpio but beware that it sends the cpio file to standard output, so you will want to pipe it to cpio to extract the files:

rpm2cpio CBS_Progect_WS-30_12.i386.rpm | cpio -idm
share|improve this answer

Perhaps rpm2cpio is what you want?

It converts a rpm to a cpio archive witch you then can extract files from: cpio -id < yourcpiofile

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.