* [gentoo-user] How do you remove packages made with --buildpkg?
@ 2005-08-08 17:59 Matt Randolph
2005-08-08 19:18 ` Neil Bothwick
0 siblings, 1 reply; 6+ messages in thread
From: Matt Randolph @ 2005-08-08 17:59 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do you remove packages made with --buildpkg?
2005-08-08 17:59 [gentoo-user] How do you remove packages made with --buildpkg? Matt Randolph
@ 2005-08-08 19:18 ` Neil Bothwick
2005-08-08 21:37 ` Matt Randolph
0 siblings, 1 reply; 6+ messages in thread
From: Neil Bothwick @ 2005-08-08 19:18 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 833 bytes --]
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!
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do you remove packages made with --buildpkg?
2005-08-08 19:18 ` Neil Bothwick
@ 2005-08-08 21:37 ` Matt Randolph
2005-08-08 22:24 ` Neil Bothwick
2005-08-08 22:24 ` Matt Randolph
0 siblings, 2 replies; 6+ messages in thread
From: Matt Randolph @ 2005-08-08 21:37 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do you remove packages made with --buildpkg?
2005-08-08 21:37 ` Matt Randolph
@ 2005-08-08 22:24 ` Neil Bothwick
2005-08-08 23:51 ` Matt Randolph
2005-08-08 22:24 ` Matt Randolph
1 sibling, 1 reply; 6+ messages in thread
From: Neil Bothwick @ 2005-08-08 22:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 670 bytes --]
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.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do you remove packages made with --buildpkg?
2005-08-08 22:24 ` Neil Bothwick
@ 2005-08-08 23:51 ` Matt Randolph
0 siblings, 0 replies; 6+ messages in thread
From: Matt Randolph @ 2005-08-08 23:51 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do you remove packages made with --buildpkg?
2005-08-08 21:37 ` Matt Randolph
2005-08-08 22:24 ` Neil Bothwick
@ 2005-08-08 22:24 ` Matt Randolph
1 sibling, 0 replies; 6+ messages in thread
From: Matt Randolph @ 2005-08-08 22:24 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-08-08 23:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 17:59 [gentoo-user] How do you remove packages made with --buildpkg? Matt Randolph
2005-08-08 19:18 ` Neil Bothwick
2005-08-08 21:37 ` Matt Randolph
2005-08-08 22:24 ` Neil Bothwick
2005-08-08 23:51 ` Matt Randolph
2005-08-08 22:24 ` Matt Randolph
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox