Question: how to keep /var/lib/yum/plugins/local small?

seth vidal skvidal at fedoraproject.org
Mon Sep 20 14:33:26 UTC 2010


On Mon, 2010-09-20 at 16:22 +0200, Joachim Backes wrote:
> On 09/20/2010 03:16 PM, seth vidal wrote:
> > On Wed, 2010-09-15 at 09:28 +0200, Joachim Backes wrote:
> >> On 09/15/2010 08:04 AM, Steven Haigh wrote:
> >>> What plugins do you have installed? I only get:
> >>>
> >>> # pwd
> >>> /var/lib/yum
> >>> # du -hs *
> >>> 1.2M	history
> >>> 0	rpmdb-indexes
> >>> 4.0K	uuid
> >>> 9.0M	yumdb
> >>>
> >>
> >> Hi Steven,
> >>
> >> cd /var/lib/yum
> >> sudo du -hs *
> >> 4.6M	history
> >> 3.8G	plugins
> >> 296K	rpmdb-indexes
> >> 4.0K	uuid
> >> 19M	yumdb
> >>
> >> Installed yum plugins: yum-plugin-local (has not been installed
> >> explictly, but automatically!)
> >>
> > 
> > 1. yum-plugin-local is not installed automatically by anything
> > 2. repomanage can help you keep the local repo to a reasonable size use:
> > 
> >     repomanage -o /var/lib/yum/plugins/local
> >       that will print out a list of the 'old packages'
> > 
> >     then:
> >        repomanage -o /var/lib/yum/plugins/local | xargs rm -f
> >      will remove them.
> > 
> >     then:
> >        createrepo -d --update /var/lib/yum/plugins/local
> > 
> >      will update the repo to remove those pkgs.
> 
> Hi Seth,
> 
> I'm sure I never applied consciously such commands as
> repomanage or createrepo, nor installed yum-plugin-local  :-)

easy way to find out:

yum history info yum-plugin-local

see what transaction brought it in.

-sv




More information about the test mailing list