Re: Removing old versions

Andre Costa <[email protected]> Thu, 13 Jan 2005 16:40:46 -0200
Newsgroups gmane.linux.conectiva.apt-rpm
Organization TecGraf
Message-ID <[email protected]>
Hi Horst,

thks for sharing your solution. It is Debian-oriented, isn't it? It
complained about 'deb' not being installed:

sudo rpm -ivh apt-smartclean-1.0-0.oc2pus.2.noarch.rpm 
warning: apt-smartclean-1.0-0.oc2pus.2.noarch.rpm: V3 DSA signature: NOKEY, key ID 1dfa8f0c
error: Failed dependencies:
        deb is needed by apt-smartclean-1.0-0.oc2pus.2

I am running apt-get on Fedora 1 here... is 'deb' really required?

Best,

Andre

On Thu, 13 Jan 2005 18:02:21 +0100
Horst Graffy <[email protected]> wrote:

> Am Donnerstag, 13. Januar 2005 14:05 schrieb Andre Costa:
> > Hi,
> >
> > I use apt regularly to update our machines, and older versions are
> > accumulating on /var/cache/apt/archives:
> >
> > Is there any way of dealing with it (i.e. removing all but latest
> > version) directly with apt or will I have to try some shell scripts
> > to handle this?
> try the attached rpm apt-smartclean.
> usage: 
> apt-smartclean -s (-s simulate)
> apt-smartclean without paramters deletes the oldest versions.
> 
> in the script /usr/bin/apt-smartclean you have to change your path to
> the  cache.
> >
> Toni
> 


-- 
Andre Oliveira da Costa
([email protected])