drew einhorn wrote:
Is there a way to determine which installed rpms came from the
official Red Hat channels?
And by a process of elimination determine which installed rpms did not
come from official Red Hat Channels?
Here's an example:
[r...@machine ~]# yum repolist
repo id repo name status
rhel-i386-client-5 Red Hat Enterprise Linux Desktop (v. 5 f enabled
: 4,324
rhel-i386-client-opt RHEL Desktop Optional (v. 5 for 32-bit x enabled
: 60
rhel-i386-client-sup RHEL Desktop Supplementary (v. 5 for 32- enabled
: 290
rhel-i386-client-vt- RHEL Desktop Multi OS (v. 5 for 32-bit x enabled
: 145
rhel-i386-client-wor RHEL Desktop Workstation (v. 5 for 32-bi enabled
: 1,889
- rhel-i386-client-optional-5 is one of our custom channels, not an
"official" channel.
[r...@machine ~]# yum update
Setting up Update Process
No Packages marked for Update
- the system is fully updated (this reduces false positives - explained
below)
[r...@machine ~]# yum --disablerepo=rhel-i386-client-optional-5 list extras
Extra Packages
fftw.i386 3.1.2-3.el5.kb
installed
fpc.i386 2.2.0-0
installed
fpc-docs.i386 2.2.0-0
installed
numpy.i386 1.0.3.1-2
installed
pam_mount.i386 0.18-0
installed
scipy.i386 0.6.0-5
installed
suitesparse.i386 3.1.0-1
installed
- That's a list of all the installed RPMs that are not also in a
channel. In this case, it's because they are in the
rhel-i386-client-optional-5 channel which I disabled while doing the
listing - you can use this information to find out the non official
RPMS, by disabling the non-official repos and it will always show RPMs
that never came from a channel in the first place (e.g. installed with
rpm -ivh).
The only caveat is that if your system isn't fully updated there will be
some false positives. This is caused by (for example), package.0.0.3
being available at one time in the updates channel, but having been
superceded by package.0.0.4 - the updates channel only contains the
latest updated version of a package. Yum will go along and check if
package.0.0.3 is in any channel and it won't find it so it will list it
as Extra, even though it originally came from the updates channel, it
just doesn't exist there at the moment. Does that make sense? I am
trying to think of a clearer way to explain...
--
Sam
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list