List files in an RPM package

Home -> UNIX -> Linux

16276 views

From the computer of: qmchenry (339 recipes)
Created: Jun 07, 2006


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

RPM is a popular software packaging format. Originally named as Red Hat Package Manager as it was developed by Red Hat for their linux distribution. Since then it has been ported to more that 20 operating systems. If you have an RPM file, the only way to get its contents out is to use the rpm utility. This recipe describes how to list the files contained in an RPM. To be honest, I don't do this often enough to remember the simple command and always have to go through the really big man page to figure it out again.

To list the contents of the RPM techrx.rpm use this command:

rpm -qlp techrx.rpm

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Build from RedHat source package (.src)
  Ubuntu: 4 Ways to Install Programs or Packages
  Ubuntu : Installing, Removing, and Searching for Packages & Apps from Terminal
  Ubuntu: Enable Window Grouping on the Window List
  gOS: Customize Your IBar
  Ubuntu: How to View Hidden Files and Folders
  Ubuntu 7.10: How to Install KDE 4.0
  Ubuntu: Place Trash Icon on the Desktop
  gOS: How to Enable Automatic Login
  Ubuntu: Disable the Startup Sound

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.