LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-09-2009, 11:47 PM   #1
vibhor_agarwalin
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Rep: Reputation: 0
Installed location of RPM


Hi,

I have installed an Rpm.
Wan't to find out the location where it get installed.
rpm -ql <rmp>
will give the list of file.
Don't wan't this approach.

Is there a command which will tell me the location where the rpm got installed.

Thanks
 
Old 04-10-2009, 12:48 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Which distro are you using?
How did you install the rpm?
 
Old 04-10-2009, 01:35 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by vibhor_agarwalin View Post
Don't wan't this approach.
Which approach would you like? The rpm -ql command gives the location of all the installed files. Grep for bin if you want the name of the executables. Or if you already know the name of the main executable, use which to discover its location.
 
Old 04-10-2009, 02:23 AM   #4
vibhor_agarwalin
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Original Poster
Rep: Reputation: 0
It's RED HAT.

I have installed the rpm via
rpm -ivh <rpm_name>

Isn't there any alternative like the solaris "pkginfo -r" command which gives the basedir of the package.

Thanks
 
Old 04-10-2009, 02:30 AM   #5
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 vibhor_agarwalin View Post
Isn't there any alternative like the solaris "pkginfo -r" command which gives the basedir of the package.
No there isn't, so if you want one you could write a filtering alias, function or script yourself.
 
Old 04-10-2009, 03:18 AM   #6
vibhor_agarwalin
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Okie,

Probably an enhancement for the RPM guys.
 
Old 04-10-2009, 09:05 AM   #7
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 vibhor_agarwalin View Post
Probably an enhancement for the RPM guys.
Could sure try: get on the RPM devel list and spill your guts there. Let's see them deal with you rolling your eyes, heh.
 
Old 04-12-2009, 05:21 PM   #8
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Quote:
Originally Posted by unSpawn View Post
No there isn't, so if you want one you could write a filtering alias, function or script yourself.
You can use 'rpm2cpio xxzzy.rpm | cpio --list'.
 
Old 04-12-2009, 08:03 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i would look in
/usr/bin
/usr/lib
/usr/share
/usr/include

this is the default path
 
Old 04-12-2009, 11:55 PM   #10
vibhor_agarwalin
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for the suggestions
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
location of files placed by rpm sang_froid Linux - General 1 02-07-2009 09:17 PM
Installing RPM on different Location jCash Linux - Newbie 1 07-09-2007 07:19 PM
installed apache from source, didn't remove rpm, updated rpm causes problems leftPeg Linux - Newbie 5 06-06-2007 09:20 PM
RPM for gcc 4.x location chlawren Linux - Software 1 04-10-2006 05:39 AM
rpm install location ...how to tell ? dynamo|x Linux - Software 6 06-01-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:40 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
Open Source Consulting | Domain Registration