Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Reproducible Installation Lists?
Date: Sat, 26 Feb 2022 11:07:30
Message-Id: 19fc0d9b-2bfe-b27d-024b-e85792fb1fc8@gmail.com
In Reply to: [gentoo-user] Reproducible Installation Lists? by Ramces Tampo-og Red
1 Ramces Tampo-og Red wrote:
2 > Hello list,
3 >
4 > I'm a sort-of newbie gentoo user and I just wanted to ask if what I'm
5 > thinking is possible or if I'm just being stupid. But either way, I was
6 > wondering if it is possible to export a list of all installed software
7 > in emerge and use that to recreate on another gentoo install.
8 >
9 > I have a bunch of PCs that are all similarly specced and I wanted to
10 > create a minimal install "template" for all of them. If not, would it be
11 > possible to pipe-in to emerge from stdin an output of all of the package
12 > names that I wanted it to emerge?
13 >
14 > I'm really sorry if this might be a stupid question. I'd appreciate any
15 > guidance in the matter.
16 >
17 > Cheers!
18 >
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 Since you mention being new to Gentoo, don't forget the --oneshot or -1
33 option when emerging things that should not be in the world file. 
34 Libraries are one thing that should rarely if ever be in that file. 
35 Once you get your install done and rarely install new packages, you can
36 add that to the defaults in make.conf.  When I first started using
37 Gentoo, I was bad to forget the -1 option and my world file was a mess. 
38 It can lead to all sorts of problems later on.  The only entries in the
39 world file should be packages you install and use directly.  It's rare
40 that anything else should be there. 
41
42 Happy Gentooing. 
43
44 Dale
45
46 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] Reproducible Installation Lists? tastytea <gentoo@××××××××.de>
Re: [gentoo-user] Reproducible Installation Lists? Ramces Tampo-og Red <rtr@××××××××.xyz>
Re: [gentoo-user] Reproducible Installation Lists? Wols Lists <antlists@××××××××××××.uk>