Solved

Viewing the contents of an RPM

Posted on 2003-10-27
2
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

691 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