command to get install path of applications/rpm packages in linux
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
command to get install path of applications/rpm packages in linux
Hi all,
I am looking out for a command which can give me the list of applications installed and the corresponding install paths for those. Could you please let me know if there is any such command.
Also, i am using rpm command to get the list of packages installed(i am assuming that this shows the list of applications installed). Please let me know if i am wrong in my understanding, or if there is any other proper command to get this information.
Either pipe output from your "rpm command to get the list of packages installed" into xargs to execute rpm with the "-ql" switch (as in 'rpm -qg 'System Environment/Kernel' --qf='%{name}\n'|xargs rpm -ql') or run 'rpm -qa --dump'?
Thank you for your response.
I am not sure if i have put my question clearly.
My aim is to get the list of installed applications and a single install path for each appliation.
for example: apache - /usr/bin - something of this sort.
Not in this way - /usr/bin/xx.exe, /usr/include/yy.h
so i have two queries:
1) is "rpm -qa" command the correct one to get list of applications? because currently this command lists things like libraries also(glibc, etc). If not, then what is the correct command?
2) "rpm -ql" gives out the list of all files and their paths for one particular package. This is not what i wanted. I require a single install path for a particular application. Like - apache - /usr/bin
I am not sure if i have put my question clearly. My aim is to get the list of installed applications and a single install path for each appliation.
for example: apache - /usr/bin - something of this sort. Not in this way - /usr/bin/xx.exe, /usr/include/yy.h
Your question is clear, as far as I'm concerned, but the idea behind it is wrong as there generally speaking are no "single install paths" (OK, other than those decided by the compile-time --prefix switch like /, /usr, /opt, /usr/local). See the FSSTND, FHS, LSB or whatever other system layout standard is current.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.