Solved

Viewing the contents of an RPM

Posted on 2003-10-27
2
315 Views
Last Modified: 2013-11-13
At times I would like to know what changes an RPM will make to my system ahead of time. I would like to run RPM with the right switches (if they exist) so it will show me what files it will intall and where. Maybe it will put one file in /etc and create a new directory under /usr with five files, and update an existing file in /usr/bin. That's the kind of thing I would like to be able to figure out.
0
Comment
Question by:jbbarnes
2 Comments
 

Accepted Solution

by:
larsra99 earned 50 total points
ID: 9630123
rpm -qpl package.rpm

should give you a list of all files that will be installed from the RPM

rpm -qipl package.rpm

if you want to see the package info as well.

-Lars
0
 
LVL 7

Expert Comment

by:HalldorG
ID: 9630126
rpm -qlp  package.rpm will list out the content

rpm -Fa package.rpm will freshen the rpm package if you already have installed an older version

rpm -qi  will give you info
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question