LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Installed location of RPM (https://www.linuxquestions.org/questions/linux-general-1/installed-location-of-rpm-718118/)

vibhor_agarwalin 04-09-2009 11:47 PM

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

chrism01 04-10-2009 12:48 AM

Which distro are you using?
How did you install the rpm?

colucix 04-10-2009 01:35 AM

Quote:

Originally Posted by vibhor_agarwalin (Post 3504281)
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.

vibhor_agarwalin 04-10-2009 02:23 AM

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

unSpawn 04-10-2009 02:30 AM

Quote:

Originally Posted by vibhor_agarwalin (Post 3504357)
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.

vibhor_agarwalin 04-10-2009 03:18 AM

Okie,

Probably an enhancement for the RPM guys. :rolleyes:

unSpawn 04-10-2009 09:05 AM

Quote:

Originally Posted by vibhor_agarwalin (Post 3504384)
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.

MrUmunhum 04-12-2009 05:21 PM

Quote:

Originally Posted by unSpawn (Post 3504365)
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'.

John VV 04-12-2009 08:03 PM

i would look in
/usr/bin
/usr/lib
/usr/share
/usr/include

this is the default path

vibhor_agarwalin 04-12-2009 11:55 PM

Thanks for the suggestions


All times are GMT -5. The time now is 10:20 AM.