[Yum] yum repolist vs. grep -i enabled *.repo

James Antill james-yum at and.org
Thu Jan 27 03:08:51 UTC 2011


Larry Vaden <vaden at texoma.net> writes:

> Hello,
>
> After attempting a migration from CentOS 5.5 to Scientific Linux 5.5,
> the result is a system in an inconsistent state.
>
> The basic stanza used for the migration was from
> SCIENTIFIC-LINUX-USERS at LISTSERV.FNAL.GOV and is below the yum/grep
> output.
>
> Trying to learn more about yum and its use, I ran the commands below the sig.
>
> 1) What am I missing about the possible/perceived discrepancies
> between the outputs of yum repolist and grep?

 .repo files can contain one or more repos. ... Eg. base.repo
 Also grepping for "enabled=" will miss lines like "enabled = 1".

> 2) For a given installed package, is it possible to get yum to
> identify which repository was used for the installation?

 Only in versions of yum newer than what is in CentOS-5 (you can try
the RHEL-5 yum-rawhide rebuild repo. ... at your own risk :)

-- 
James Antill -- james at and.org


More information about the Yum mailing list