[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unsed .deb packages??



On Sunday 18 November 2007 20:03, Paul Johnson wrote:
> On Nov 16, 7:10 pm, "David Fox" <dfox94...@gmail.com> wrote:
> > On 11/16/07, Andrew Sackville-West <and...@farwestbilliards.com> wrote:
> > > I think OP is looking for aptitude clean or auto-clean. Check the man
> > > page. It will remove debs that aren't current. or something like that.
> >
> > Actually, all that does is to remove either all (clean) or selected
> > (auto-clean) - selected in the sense that they're debs no longer
> > available.
>
> Actually, autoclean removes packages that are no longer the latest
> available from the local package cache.

I' m sorry to disagree Paul, but that's not the way I found autoclean to work.
I thought it would remove all but the latest package versions, but in effect 
only removed those that were no longer available from the repo. I was still 
left with multiple versions of packages, in some cases 3, or 4 versions of 
the same package. I presume this is so that you can revert to an earlier 
version of a package if you have a problem with the latest one, and without 
having to download it again.

I havn't tried Marc's script yet, but if it works as he says, it should remove 
all but the latest package versions in /var/cache/apt/archives.

Perhaps "clean-all-but-the-latest" would be a good addition to apt-get.

Only light hearted week-end ramblings.

Nigel.



Reply to: