Re: [gentoo-user] How do you remove packages made with --buildpkg?

2005-08-08 Thread Matt Randolph

Neil Bothwick wrote:


find $PKGDIR ! -mtime +1 -exec rm "{}" \;
   



This line is wrong, it should be

 


find $PKGDIR -mtime +1 -exec rm "{}" \;
   



Oops!  I should read more slowly too.

Thanks again, btw.

--
"Pluralitas non est ponenda sine necessitate" - W. of O.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How do you remove packages made with --buildpkg?

2005-08-08 Thread Matt Randolph

Matt Randolph wrote:


Neil Bothwick wrote:


Or you can do it automatically with
qpkg -I -nc -v | while read p; do
   touch --no-create $PKGDIR/$p.tbz2
   touch --no-create $PKGDIR/All/$(basename $p).tbz2
   done
find $PKGDIR ! -mtime +1 -exec rm "{}" \;
 



Since qpkg is being phased out, I guess the equery way to do this is:

equery -C l 2> /dev/null | grep / | while read p; do
   touch --no-create $PKGDIR/$p.tbz2
   touch --no-create $PKGDIR/All/$(basename $p).tbz2
   done
find $PKGDIR ! -mtime +1 -exec rm "{}" \;

Right?  qpkg is a lot faster, though.


Oops!  I guess the -C flag isn't strictly necessary.

--
"Pluralitas non est ponenda sine necessitate" - W. of O.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How do you remove packages made with --buildpkg?

2005-08-08 Thread Neil Bothwick
On Mon, 08 Aug 2005 17:37:06 -0400, Matt Randolph wrote:

> Since qpkg is being phased out, I guess the equery way to do this is:
> 
> equery -C l 2> /dev/null | grep / | while read p; do
> touch --no-create $PKGDIR/$p.tbz2
> touch --no-create $PKGDIR/All/$(basename $p).tbz2
> done

Probably, but I still use qpkg wherever possible.

> find $PKGDIR ! -mtime +1 -exec rm "{}" \;

This line is wrong, it should be

> find $PKGDIR -mtime +1 -exec rm "{}" \;

> Right?  qpkg is a lot faster, though.

Yes, by several orders of magnitude, which is why I still use it.


-- 
Neil Bothwick

God: What one human uses to persecute another.


pgpx0kq673BAG.pgp
Description: PGP signature


Re: [gentoo-user] How do you remove packages made with --buildpkg?

2005-08-08 Thread Matt Randolph

Neil Bothwick wrote:

Or you can do it automatically with 


qpkg -I -nc -v | while read p; do
   touch --no-create $PKGDIR/$p.tbz2
   touch --no-create $PKGDIR/All/$(basename $p).tbz2
   done
find $PKGDIR ! -mtime +1 -exec rm "{}" \;
 



Since qpkg is being phased out, I guess the equery way to do this is:

equery -C l 2> /dev/null | grep / | while read p; do
   touch --no-create $PKGDIR/$p.tbz2
   touch --no-create $PKGDIR/All/$(basename $p).tbz2
   done
find $PKGDIR ! -mtime +1 -exec rm "{}" \;

Right?  qpkg is a lot faster, though.

--
"Pluralitas non est ponenda sine necessitate" - W. of O.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How do you remove packages made with --buildpkg?

2005-08-08 Thread Neil Bothwick
On Mon, 08 Aug 2005 13:59:26 -0400, Matt Randolph wrote:

> How the heck do you remove the old built binaries?  They aren't simply 
> put in '${PKGDIR}/All' like the manual says.  There are a bunch of 
> places that the different pieces go.  A bunch of symlinks and new 
> directories are created too, IIRC. 

The packages go in ${PKGDIR}/All, the rest are just symlinks. Remove the
packages from All then delete the dangling symlinks with 

symlinks -dr ${PKGDIR}

emerge symlinks if you don't already have it.

Or you can do it automatically with 

qpkg -I -nc -v | while read p; do
touch --no-create $PKGDIR/$p.tbz2
touch --no-create $PKGDIR/All/$(basename $p).tbz2
done
find $PKGDIR ! -mtime +1 -exec rm "{}" \;
 

-- 
Neil Bothwick

Why do Kennedy's cry after sex? . Mace!


pgp6D6N7utSpJ.pgp
Description: PGP signature


[gentoo-user] How do you remove packages made with --buildpkg?

2005-08-08 Thread Matt Randolph
First off, let me say that I know perfectly well that you can `emerge -C 
package_name` at any time.  That's not what I'm talking about.  What I 
want to do is to remove the built binary too.


Let me explain what I do and what I'm trying to do in more detail...

Sometimes, I like to be able to test several different ~arch versions of 
a package to see which one works best for me.  I may try switching back 
and forth between several different versions, possibly deciding 
ultimately that none of the ~arch versions are any improvement over the 
previously installed arch version, and so I re-emerge the old one.


If the program in question is rather large, I won't want to build it any 
more times than I have to.  Consequently, I use quickpkg on the 
original, and then --buildpkg on all of the testing versions.  This way, 
I only have to compile each package once, yet I can switch back and 
forth between them in mere seconds.


The problem with this scheme is that the built binaries aren't removed 
when you unmerge the corresponding package.  Actually, if they were, 
then this technique wouldn't work at all.  I have a very small hard 
drive so I can't afford to have these unneeded binaries cluttering up 
the disk.  I have to get rid of them somehow.


How the heck do you remove the old built binaries?  They aren't simply 
put in '${PKGDIR}/All' like the manual says.  There are a bunch of 
places that the different pieces go.  A bunch of symlinks and new 
directories are created too, IIRC.  It is a nuisance to remove 
everything by hand.  I wrote a script to do some of the legwork for me, 
but it's time consuming and requires a lot of user intervention.


Isn't there a tool to remove these old binaries?  Is there a command you 
pass to emerge?  I assume there's something really trivial and obvious 
that I've simply missed, but I'm getting tired of searching for it.


Thanks!

--
"Pluralitas non est ponenda sine necessitate" - W. of O.

--
gentoo-user@gentoo.org mailing list