Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A question about how to use rpm command

Status
Not open for further replies.

whn

Programmer
Oct 14, 2007
265
0
0
US
Hi, all,

I need to find out the detailed contents info in a rpm file. The command I know is 'rpm -qlp package.rpm', which lists ONLY the names of all subdirs/files in package.rpm.

I wonder whether there is a way to list all those suddirs/files with permissions and ownerships? I have read the man page quite afew times and could figure out what argument I should use. And I am not even sure if such an argument exist.

Your input is highly appreciated.
 
Oh, I just read the man page one more time and found the answer:

To find the permissions/ownerships before install:

Code:
rpm -qlpv package.rpm

To find the permissions/ownerships after install:

Code:
rpm -qlv package_name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top