- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Source / rpm package location
Operating System - Linux
1822474
Members
2389
Online
109642
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО11-20-2009 05:53 AM
тАО11-20-2009 05:53 AM
Source / rpm package location
Linux Admins:
I am curious to know if there is a way of finding the source of an rpm package which is already installed on a RHEL server. On HP-UX I use the command "swlist -v | grep -i source" to get the name/location of the depot file. I am sure there is a way to get this information on a Linux server too. Any input from your end would be most appreciated.
I am curious to know if there is a way of finding the source of an rpm package which is already installed on a RHEL server. On HP-UX I use the command "swlist -v
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2009 06:12 AM
тАО11-20-2009 06:12 AM
Re: Source / rpm package location
Shalom,
rpm -qa
See the man page for other listing options.
rpm can do almost anything that swlist does.
SEP
rpm -qa
See the man page for other listing options.
rpm can do almost anything that swlist does.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2009 06:27 AM
тАО11-20-2009 06:27 AM
Re: Source / rpm package location
Shalom to you too, Steve.
Thanks for taking the time and writing back to me. I am still looking for answers for this question. I am aware of rpm -qa. Before shooting this question, I looked at man pages and did not find a similar option which gives the source of the depot or rpm file for any given package. Please send me any ideas to grab this piece of information.
Thanks for taking the time and writing back to me. I am still looking for answers for this question. I am aware of rpm -qa. Before shooting this question, I looked at man pages and did not find a similar option which gives the source of the depot or rpm file for any given package. Please send me any ideas to grab this piece of information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2009 09:07 AM
тАО11-20-2009 09:07 AM
Re: Source / rpm package location
Source? Like, the name of the RPM?
By RedHat standard practice, the RPM filename of is always -.rpm.
The command
rpm -qi
can be used to get the package metadata information, which may include the URL where the package's source code is available.
The same information can be read from a RPM file with:
rpm -qip-.rpm
I don't think the RPM tool stores any information about where the RPM file came from into the installed RPM database; this would be the job for higher-level tools, like up2date (RHEL 4 and older) or yum (RHEL5 +).
By the time the "rpm" tool can begin the installation of a package, the package must already downloaded to the local system. Therefore, if the rpm command saved the package location information, it would often be a reference to the package management system's temporary directory, like "/var/lib/rpm/-.rpm".
MK
By RedHat standard practice, the RPM filename of
The command
rpm -qi
can be used to get the package metadata information, which may include the URL where the package's source code is available.
The same information can be read from a RPM file with:
rpm -qip
I don't think the RPM tool stores any information about where the RPM file came from into the installed RPM database; this would be the job for higher-level tools, like up2date (RHEL 4 and older) or yum (RHEL5 +).
By the time the "rpm" tool can begin the installation of a package, the package must already downloaded to the local system. Therefore, if the rpm command saved the package location information, it would often be a reference to the package management system's temporary directory, like "/var/lib/rpm/
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP