Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find out w/YUM or RPM what files it installed?

I installed Fedora 16 last night and saw it had NoMachine's NX in the repo. I did a

yum install nx

and it says it installed correctly, but for the life of me I can't find the .service or /etc/init.d file(s) or even the /etc configuration files for any sort of NX server. I do see

nxssh
nxproxy
nxagent

but there aren't even man entries for them.

To be able to figure out what it's done, what I'd like to do is see exactly what files and where it put them.

I've looked and looked-- is there a command I can invoke, either yum or rpm that tells me the files contained in an already-installed RPM? Something like how

rpm -qpl <some rpm>.rpm

lists the files (with directories) packaged in an RPM.

Thanks!

like image 818
aimzies Avatar asked Nov 09 '11 16:11

aimzies


People also ask

How do I find out where an rpm is installed?

Most files pertaining to RPM are kept in the /var/lib/rpm/ directory. For more information on RPM, refer to the chapter Chapter 10, Package Management with RPM. The /var/cache/yum/ directory contains files used by the Package Updater, including RPM header information for the system.

Is yum and rpm the same?

RPM is autonomous and utilizes its own database to keep information about the packages on the system. YUM is a front-end utility that uses the RPM package manager for package management. The utility also uses the RPM database in the backend. RPM package management and handling gets complicated at times.


1 Answers

Use the --filesbypkg argument for rpm.

rpm -qi --filesbypkg nx
like image 66
Colin Dunklau Avatar answered Jan 01 '23 21:01

Colin Dunklau