Re: Determining the origin repository of a rpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2005-10-18 at 19:10 +0100, Paul Smith wrote:
> On 10/18/05, Mike McGrath <mmcgrath@xxxxxxxxxxxxx> wrote:
> > > Is there some way of knowing from which repository a
> > > specified rpm was installed?
> >
> > You can look up the name and find out whether it came from a specific
> > repository type (like base or updates).  The default yum config uses
> > mirrors and to the best of my knowledge there's no way to figure out
> > which mirror it came from.  You wouldn't happen to be using a HTTP Proxy
> > for yum would you?
> 
> Thanks, Mike. I do not want to know which was the mirror, but only the
> name of the repository, i.e., livna, base, etc. If the package is not
> installed and if it exists in some repository,
> 
> yum list name_of_the_package
> 
> says in which repository the package is. However, if the package is
> already installed, no information about the name of the repository is
> given.
> 
> Paul
> 

For an already installed package you can use an rpm query:

rpm -q --queryformat '%{Vendor}\n' <packagename>


HTH

Simon Bone



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux