Re: yum repolist vs. grep -i enabled *.repo
James Antill <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
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". > 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 -- [email protected]