LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-30-2010, 05:21 AM   #1
sspp
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
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.

Thanks in advance.
 
Old 06-30-2010, 05:45 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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'?
 
Old 07-01-2010, 01:19 AM   #3
sspp
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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

Thanks.
 
Old 07-01-2010, 03:46 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by sspp View Post
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.
 
Old 07-16-2010, 06:07 PM   #5
General.TerroR!
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
Similar Question

Hello everyone,
I have a similar query regarding RPM.

Is there a command to know " From where a specific RPM package was downloaded & installed ( The full HTTP/FTP path ) " ?

For example, if I had previously installed Firefox from here ftp://rpmfind.net/linux/fedora/updat...c13.x86_64.rpm

is there a specific rpm query, or any other place, from where I can get the full ftp path back.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which path to use to query rpm to determine which RPM to install? elitt2 Red Hat 4 10-08-2007 01:18 PM
install rpm in $HOME path munna_dude Programming 1 08-22-2007 03:38 AM
can i install redhat rpm packages in mandrake linux chamara910 Linux - Software 5 08-26-2004 11:41 AM
Slacware packages' install path SolarBear Slackware 4 06-25-2004 02:34 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration