Determining the origin repository of a rpm
Simon Bone
sf.bone at btinternet.com
Wed Oct 19 12:43:59 UTC 2005
On Tue, 2005-10-18 at 19:10 +0100, Paul Smith wrote:
> On 10/18/05, Mike McGrath <mmcgrath at iesabroad.org> 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
More information about the fedora-list
mailing list