yum remove half-of-my-system

Adam Jackson ajax at redhat.com
Thu May 14 14:23:31 UTC 2009


On Thu, 2009-05-14 at 09:51 +0300, Panu Matilainen wrote:
> On Wed, 13 May 2009, Adam Jackson wrote:
> 
> > On Wed, 2009-05-13 at 11:08 -0700, Jesse Keating wrote:
> >> On Wed, 2009-05-13 at 14:03 -0400, Seth Vidal wrote:
> >>>
> >>> I agree with  this except then we have to put rpmq-crontab in a separate
> >>> pkg which would need to be added to comps base, I think.
> >>
> >> Or we question the usefulness of the cron job itself and potentially
> >> scrub it all together.
> >
> > IAWTP.
> 
> Tell that to the people whose rpmdb got destroyed somehow (I remember 
> doing an accidental 'rm -f /var/lib/rpm/*' myself a few years ago...) and 
> managed to resurrect the system by using the data in /var/log/rpmpkgs :)

These days I'd be inclined to do something like:

for i in /{,usr}/{,s}bin ; do
    pkgs=`repoquery --whatprovides $i`
    if [ `echo $pkgs | wc -w` -gt 1 ] ; then
        echo $pkgs 1>&2
    else
        echo $pkgs
    fi
done 2>& troublemakers | sort | uniq -c > packages

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20090514/ac217058/attachment.sig>


More information about the fedora-test-list mailing list