Gentoo Archives: gentoo-user

From: Ramces Tampo-og Red <rtr@××××××××.xyz>
To: Dale <rdalek1967@×××××.com>, gentoo-user@l.g.o
Subject: Re: [gentoo-user] Reproducible Installation Lists?
Date: Sat, 26 Feb 2022 12:14:20
Message-Id: 87wnhhlt9q.fsf@kalayaan.xyz
In Reply to: Re: [gentoo-user] Reproducible Installation Lists? by Dale
1 Dale <rdalek1967@×××××.com> writes:
2 > Ramces Tampo-og Red wrote:
3 >> Hello list,
4 >>
5 >> I'm a sort-of newbie gentoo user and I just wanted to ask if what I'm
6 >> thinking is possible or if I'm just being stupid. But either way, I was
7 >> wondering if it is possible to export a list of all installed software
8 >> in emerge and use that to recreate on another gentoo install.
9 >>
10 >> I have a bunch of PCs that are all similarly specced and I wanted to
11 >> create a minimal install "template" for all of them. If not, would it be
12 >> possible to pipe-in to emerge from stdin an output of all of the package
13 >> names that I wanted it to emerge?
14 >>
15 >> I'm really sorry if this might be a stupid question. I'd appreciate any
16 >> guidance in the matter.
17 >>
18 >> Cheers!
19 >>
20 >
21 > There is a file that contains all the packages you have installed.  It
22 > is located here:
23 >
24 > /var/lib/portage/world
25 >
26 > One could copy that file to another system and do a emerge @world to
27 > install the same list of packages.  Depending on what all you have
28 > installed, it could confuse emerge and not be doable.  In the past, I
29 > had a copy of the file and I emerged them a few at a time.  It's worth
30 > trying by just coping the file tho.  It just might work. 
31 >
32
33 Thanks, I will look into that.
34
35 > Since you mention being new to Gentoo, don't forget the --oneshot or -1
36 > option when emerging things that should not be in the world file. 
37 > Libraries are one thing that should rarely if ever be in that file. 
38 > Once you get your install done and rarely install new packages, you can
39 > add that to the defaults in make.conf.  When I first started using
40 > Gentoo, I was bad to forget the -1 option and my world file was a mess. 
41 > It can lead to all sorts of problems later on.  The only entries in the
42 > world file should be packages you install and use directly.  It's rare
43 > that anything else should be there. 
44 >
45
46 Wait. Does this mean doing an emerge --ask foo-libs/lib or do you mean
47 the stuff that were pulled alongside packages? Since I do think that the
48 packages that I've installed certainly pulled libraries too.
49
50 > Happy Gentooing. 
51 >
52 > Dale
53 >
54 > :-)  :-) 
55 >
56
57 Cheers, you too!
58
59 --
60 . * +
61 + Ang kalayaan ay dili gihatag, ini'y giabot.
62 * + {gopher,gemini}://kalayaan.xyz *
63 . C4AE 5D53 46A0 01DF 6E92 CB46 92D7 9FBB AB9F 3E37 .

Replies

Subject Author
Re: [gentoo-user] Reproducible Installation Lists? Dale <rdalek1967@×××××.com>