LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 06: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, 06:45 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
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, 02: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, 04:46 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
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, 07: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:18 PM
install rpm in $HOME path munna_dude Programming 1 08-22-2007 04:38 AM
can i install redhat rpm packages in mandrake linux chamara910 Linux - Software 5 08-26-2004 12:41 PM
Slacware packages' install path SolarBear Slackware 4 06-25-2004 03:34 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 01:44 AM


All times are GMT -5. The time now is 06:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration