Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

All you have to know about RPM

by Alexandre de Abreu

How can I list what files will be installed by a RPM package?

This is usefull when you have to verify the contents of a package, execute the following on the shell to see the contents of the installed package "cpp":

rpm -ql cpp

The "-l" parameter stands for list. And here's the output:

# rpm -ql cpp
/lib/cpp
/usr/bin/cpp
/usr/lib/gcc-lib
/usr/lib/gcc-lib/i386-redhat-linux
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/cc1
/usr/share/info/cpp.info.gz
/usr/share/info/cppinternals.info.gz
/usr/share/man/man1/cpp.1.gz

To do the same for a package file(ex: cpp-3.3.2-1.i386.rpm) add the parameter "-p" indicating a RPM package:

rpm -qpl cpp-3.3.2-1.i386.rpm