Re: yum repolist vs. grep -i enabled *.repo

Larry Vaden <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On Wed, Jan 26, 2011 at 9:08 PM, James Antill <[email protected]> wrote:
> Larry Vaden <[email protected]> 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
>> [email protected] 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@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@shell yum.repos.d]#

kind regards/ldv
_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.