- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Installed location of a package
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2009 02:16 AM
тАО06-18-2009 02:16 AM
I want to find the installed location of a RPM. The RPM might be installed in normal location or might be relocated as well.
Aware of the "rpm -ql" command which gives the list of files.
Is there any other way to find the location?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2009 07:12 PM
тАО06-18-2009 07:12 PM
Re: Installed location of a package
I dont think rpm -ql will help you in this because it only does is list the files inside your rpm.
There is no single command i know to solve your problem but i can suggest you this.
1)get the "rpm -ql pakage.rpm" out put.
this will list you what ever the files going get installed on the system.
2) use "find" or "locate" to find the location of the files got from step 1s output.
eg: "find / -name name-of-file"
if u r planing to use "locate" run "updatedb" prior to "locate"
3)use "rpm -qf /file/path/from/step2" to verify what rpm installed this file on the system.
Hope this is what you wanted to do.
Good Luck....!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2009 07:47 PM
тАО06-18-2009 07:47 PM
Re: Installed location of a package
The best way you already mentioned, e.g. "rpm -ql" besides that you may use find or locate command but i don't think so your desire result will be fulfill.
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2009 09:43 PM
тАО06-21-2009 09:43 PM
Re: Installed location of a package
I will have to go with the tedious & lengthier way.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 08:36 AM
тАО06-22-2009 08:36 AM
Solutionrpm -q --queryformat %{installprefix}"\n" postfix
Check tags with:
rpm --querytags
"The INSTALLPREFIX tag is used to display the actual path used when a relocatable package was installed."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 10:57 PM
тАО06-22-2009 10:57 PM
Re: Installed location of a package
That was what I was looking for.
Thanks