LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to get source ( full HTTP/FTP ) path of 'Installed' RPMs (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-get-source-full-http-ftp-path-of-installed-rpms-820428/)

Fazal.420 07-17-2010 03:27 PM

Command to get source ( full HTTP/FTP ) path of 'Installed' RPMs
 
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.


Sorry if I have double-posted, because I am being forced to do so :(

btmiller 07-18-2010 04:27 PM

To the best of my knowledge, there's no way to do this since the location of the package is not encoded anywhere within the RPM. Yum would be able to keep track of which repos you downloaded a package from if you use that, but I don't think there's any way to do it with a plain old RPM. Maybe if you use yum's localinstall argument giving it the URL it would work but I've never tried it.


All times are GMT -5. The time now is 01:34 AM.