Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] question about binhost's
Date: Mon, 17 Nov 2014 21:55:30
Message-Id: 546A6E93.6050909@gmail.com
In Reply to: Re: [gentoo-user] question about binhost's by Michael Mair-Keimberger
1 On 17/11/2014 23:46, Michael Mair-Keimberger wrote:
2 > On Mon, Nov 17, 2014 at 11:27:08PM +0200, Alan McKinnon wrote:
3 >> On 17/11/2014 23:01, Michael Mair-Keimberger wrote:
4 >>> Hi list,
5 >>>
6 >>> I was setting up an binhost recently and i couldn't found any
7 >>> information how to keep old builds.
8 >>> Usually, for example a newer version of tcpdump gets build, the old
9 >>> build will be deleted. Only different slots were keeped. However, I
10 >>> want to keep these old builds but I haven't found an option for that.
11 >>>
12 >>> Is it even possible to keep these? If not, anyone know why? if it's not
13 >>> possible there must be a reason and i couldn't think of anyone...
14 >>>
15 >>
16 >> short answer:
17 >> emerge -b
18 >>
19 >> long answer:
20 >> read "man emerge". All of it. Gotchas await.
21 >
22 > Well, the man page doesn't describe why it can't keep old builds...
23 > (don't know what you referring too)
24 >
25 > I do know `emerge -b` creates binary packages, but i orginally asked for
26 > a way to keep older versions of binary packages.
27
28
29
30 You can't because emerge does not work that way[1].
31
32 If you want to keep the contents of an installed package:
33
34 a. use binpkgs to create an archive of the package at the time it is
35 built (not at the time is is about to be replaced)
36
37 b. Manually run quickpkg on packages you are interested in before
38 emerging them
39
40
41
42 [1] Unless Zac added this feature since the last time I read the man
43 pages. Won't be the first time a new feature sneaked in without a user
44 noticing :-)
45
46
47
48 >
49 > Example:
50 >
51 > emerge -b =net-analyzer/tcpdump-4.5.1-r1
52 > - binary package for tcpdump-4.5.1-r1 gets created
53 > emerge -b =net-analyzer/tcpdump-4.6.2
54 > - binary package for tcpdump-4.6.2 gets created AND tcpdump-4.5.1-r1
55 > gets deleted
56 >
57 > However, I want to keep tcpdump-4.5.1-r1 if possible.
58 >
59 > Is there a way? Simply emerge -b isn't sufficiency.
60 >
61 >>
62 >> --
63 >> Alan McKinnon
64 >> alan.mckinnon@×××××.com
65 >>
66 >>
67 >
68
69
70 --
71 Alan McKinnon
72 alan.mckinnon@×××××.com