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

Larry Vaden vaden at texoma.net
Thu Jan 27 03:17:44 UTC 2011


On Wed, Jan 26, 2011 at 9:08 PM, James Antill <james-yum at and.org> wrote:
> 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".

Please allow me to repeat question 1 and revise and extend my remarks
like a Congress Critter :)

[root at shell yum.repos.d]# grep -i enabled *.repo
adobe.repo:enabled=0
atrpms.repo:enabled=0
CentOS-Base.repo:enabled=0
CentOS-Base.repo:enabled=0
CentOS-Media.repo:enabled=0
dag.repo:enabled=0
sl-contrib.repo:enabled=0
sl-debuginfo.repo:enabled=0
sl-fastbugs.repo:enabled=0
sl.repo:enabled=1
sl-security.repo:enabled=1
sl-srpms.repo:enabled=0
sl-testing.repo:enabled=0
[root at shell yum.repos.d]#

kind regards/ldv


More information about the Yum mailing list