Re: [gentoo-user] Removing old packages from /usr/portage/packages

2003-06-13 Thread Lincoln A. Baxter
Very nice!

Thanks, I had started to think some more about the problem, and
you have solved it most elequently.

Lincoln


On Fri, 2003-06-13 at 18:16, [EMAIL PROTECTED] wrote:
> On Thu, Jun 12, 2003 at 11:00:58AM -0700, Zack Gilburd wrote:
> Content-Description: signed data
> > On Thursday 12 June 2003 07:58, keanu wrote:
> > > On Wednesday 11 June 2003 20:51, Jose Romildo Malaquias wrote:
> > > > Does anybody has a script for removing old
> > > > files from /usr/portage/packages ?
> > > >
> > > > I have been accumalating package files (*.tbz2)
> > > > produced by emerge whith the --buildpkg option.
> > > > Now I want to (automatically) remove the older
> > > > ones if there are different versions for the
> > > > same package.
> > >
> > > There are a few scripts on the gentoo forums (some better then others)
> > > under the Documentation, Tips & Tricks section if i'm not mistaken (you'll
> > > find alot of usefull stuff there)
> > >
> > > i don't have time to look for the actual script, but it shouldn't be hard
> > > to find
> > 
> > Unfortunately, the only scripts that I could find that would be even close to 
> > fitting the bill aren't for /usr/portage/packages, but rather they're for 
> > /usr/portage/distfiles.
> 
> In the topic discussed at http://forums.gentoo.org/viewtopic.php?t=23027
> there is two scripts for cleaning both the distfiles and the packages
> subdirectories of the portage directory, based on which packages
> are not currently installed.
> 
> In the topic http://forums.gentoo.org/viewtopic.php?t=3011 one can
> find also a script for cleaning the distfiles subdirectory, based on the
> existence of a related ebuild in the portage hierarchy. I have
> adapted it for cleaning the packages subdirectory. Those scripts
> are more conservative as they keep any distfile or package file
> for which there is an ebuild. Those scripts are attached. They
> do not remove the files itself, but outputs their name to the
> standard output.
> 
> Romildo
-- 
Lincoln A. Baxter <[EMAIL PROTECTED]>


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Removing old packages from /usr/portage/packages

2003-06-13 Thread romildo
On Thu, Jun 12, 2003 at 11:00:58AM -0700, Zack Gilburd wrote:
Content-Description: signed data
> On Thursday 12 June 2003 07:58, keanu wrote:
> > On Wednesday 11 June 2003 20:51, Jose Romildo Malaquias wrote:
> > > Does anybody has a script for removing old
> > > files from /usr/portage/packages ?
> > >
> > > I have been accumalating package files (*.tbz2)
> > > produced by emerge whith the --buildpkg option.
> > > Now I want to (automatically) remove the older
> > > ones if there are different versions for the
> > > same package.
> >
> > There are a few scripts on the gentoo forums (some better then others)
> > under the Documentation, Tips & Tricks section if i'm not mistaken (you'll
> > find alot of usefull stuff there)
> >
> > i don't have time to look for the actual script, but it shouldn't be hard
> > to find
> 
> Unfortunately, the only scripts that I could find that would be even close to 
> fitting the bill aren't for /usr/portage/packages, but rather they're for 
> /usr/portage/distfiles.

In the topic discussed at http://forums.gentoo.org/viewtopic.php?t=23027
there is two scripts for cleaning both the distfiles and the packages
subdirectories of the portage directory, based on which packages
are not currently installed.

In the topic http://forums.gentoo.org/viewtopic.php?t=3011 one can
find also a script for cleaning the distfiles subdirectory, based on the
existence of a related ebuild in the portage hierarchy. I have
adapted it for cleaning the packages subdirectory. Those scripts
are more conservative as they keep any distfile or package file
for which there is an ebuild. Those scripts are attached. They
do not remove the files itself, but outputs their name to the
standard output.

Romildo
-- 
Prof. Jose Romildo Malaquias[EMAIL PROTECTED]
Departamento de Computação   [EMAIL PROTECTED]
Univ. Federal de Ouro Preto  http://uber.com.br/romildo


clean-packages.sh
Description: Bourne shell script


clean-distfiles.sh
Description: Bourne shell script
--
[EMAIL PROTECTED] mailing list

Re: [gentoo-user] Removing old packages from /usr/portage/packages

2003-06-12 Thread Zack Gilburd
On Thursday 12 June 2003 07:58, keanu wrote:
> On Wednesday 11 June 2003 20:51, Jose Romildo Malaquias wrote:
> > Does anybody has a script for removing old
> > files from /usr/portage/packages ?
> >
> > I have been accumalating package files (*.tbz2)
> > produced by emerge whith the --buildpkg option.
> > Now I want to (automatically) remove the older
> > ones if there are different versions for the
> > same package.
>
> There are a few scripts on the gentoo forums (some better then others)
> under the Documentation, Tips & Tricks section if i'm not mistaken (you'll
> find alot of usefull stuff there)
>
> i don't have time to look for the actual script, but it shouldn't be hard
> to find

Unfortunately, the only scripts that I could find that would be even close to 
fitting the bill aren't for /usr/portage/packages, but rather they're for 
/usr/portage/distfiles.

-- 
Zack Gilburd
http://tehunlose.com


pgp0.pgp
Description: signature


Re: [gentoo-user] Removing old packages from /usr/portage/packages

2003-06-12 Thread keanu
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 11 June 2003 20:51, Jose Romildo Malaquias wrote:
> Does anybody has a script for removing old
> files from /usr/portage/packages ?
>
> I have been accumalating package files (*.tbz2)
> produced by emerge whith the --buildpkg option.
> Now I want to (automatically) remove the older
> ones if there are different versions for the
> same package.
>

There are a few scripts on the gentoo forums (some better then others)
under the Documentation, Tips & Tricks section if i'm not mistaken (you'll 
find alot of usefull stuff there)

i don't have time to look for the actual script, but it shouldn't be hard to 
find
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+6JUPlDgijDJG3oERAumPAKCqUvNXigbgC4ZbAYb0hSLYA8bcswCfdMTF
Y2flQccpj3QMSwgCbkNFlps=
=84hk
-END PGP SIGNATURE-


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Removing old packages from /usr/portage/packages

2003-06-12 Thread Zack Gilburd
On Wednesday 11 June 2003 11:47, John Alberts wrote:
> I believe if you put 'AUTOCLEAN="yes"' in your /etc/make.conf it should
> clean things up automatically.
>
> John
>
>
> -Original Message-
> From: Jose Romildo Malaquias [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 11, 2003 1:52 PM
> To: [EMAIL PROTECTED]
>
> Does anybody has a script for removing old
> files from /usr/portage/packages ?
>
> I have been accumalating package files (*.tbz2)
> produced by emerge whith the --buildpkg option.
> Now I want to (automatically) remove the older
> ones if there are different versions for the
> same package.
>
> Any help?
>
> Romildo
This does not clean out built packages.  I, too, am looking for such a script.  
Help is greatly appreciated.
-- 
Zack Gilburd
http://tehunlose.com


pgp0.pgp
Description: signature


RE: [gentoo-user] Removing old packages from /usr/portage/packages

2003-06-11 Thread John Alberts
I believe if you put 'AUTOCLEAN="yes"' in your /etc/make.conf it should
clean things up automatically.

John


-Original Message-
From: Jose Romildo Malaquias [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 1:52 PM
To: [EMAIL PROTECTED]

Does anybody has a script for removing old
files from /usr/portage/packages ?

I have been accumalating package files (*.tbz2)
produced by emerge whith the --buildpkg option.
Now I want to (automatically) remove the older
ones if there are different versions for the
same package.

Any help?

Romildo
-- 
Prof. José Romildo Malaquias[EMAIL PROTECTED]
Departamento de Computação   [EMAIL PROTECTED]
Univ. Federal de Ouro Preto  http://uber.com.br/romildo

--
[EMAIL PROTECTED] mailing list


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003
 


--
[EMAIL PROTECTED] mailing list



[gentoo-user] Removing old packages from /usr/portage/packages

2003-06-11 Thread Jose Romildo Malaquias
Does anybody has a script for removing old
files from /usr/portage/packages ?

I have been accumalating package files (*.tbz2)
produced by emerge whith the --buildpkg option.
Now I want to (automatically) remove the older
ones if there are different versions for the
same package.

Any help?

Romildo
-- 
Prof. José Romildo Malaquias[EMAIL PROTECTED]
Departamento de Computação   [EMAIL PROTECTED]
Univ. Federal de Ouro Preto  http://uber.com.br/romildo

--
[EMAIL PROTECTED] mailing list