top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How we can check the content of rpm in Unix/Linux?

+2 votes
373 views
How we can check the content of rpm in Unix/Linux?
posted Jul 11, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

I assume that you want to know that how to list the files of a rpm the command is rpm -qlp and it will do the job for you -

rpm -qlp httpd-xxxx.rpm

Sample Output

/etc/httpd
/etc/httpd/conf
/etc/httpd/conf.d
/etc/httpd/conf.d/README
/etc/httpd/conf.d/proxy_ajp.conf
/etc/httpd/conf.d/welcome.conf
/etc/httpd/conf/httpd.conf
....
..
..
/var/www/icons/world1.png
/var/www/icons/world2.gif
/var/www/icons/world2.png

To get the list of files from the installed package please use rpm -ql like

rpm -ql httpd

answer Jul 11, 2014 by Salil Agrawal
...