Gentoo Archives: gentoo-user

From: "»Q«" <boxcars@×××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Preventing new versions of gentoo-sources…
Date: Fri, 21 Jun 2019 12:17:23
Message-Id: 20190621071709.1230ae02@sepulchrave.remarqs
In Reply to: Re: [gentoo-user] Preventing new versions of gentoo-sources… by Dale
1 On Thu, 20 Jun 2019 22:08:03 -0500
2 Dale <rdalek1967@×××××.com> wrote:
3
4 > Daniel Frey wrote:
5
6 > > Yep. --select and --noreplace both record the package specified in
7 > > the world file. The difference is you use --noreplace when the
8 > > package specified is already installed, this prevents it from being
9 > > reinstalled (it will record it in the world file without
10 > > reinstalling the package.)
11 > >
12 > > If you know you want to keep it (as in: have --oneshot as a default
13 > > option) and you use --select, it will record it in the world file
14 > > and install the package.
15
16 > That's what I do now tho.  I'm trying to figure out how this is
17 > different since it ends with the same result.  The reason I have to
18 > add --exclude gentoo-sources to --depclean is so that it won't remove
19 > kernels I still have installed and may even be using or keeping as a
20 > fall back.  I've tried different ways to accomplish this, except for
21 > the one Neil posted, and any of them has some sort of issue that has
22 > to be addressed in one way or another. 
23
24 Putting the kernel versions you want to keep into @world by slot will
25 keep them from being depcleaned. E.g., if depclean wants to get rid of
26 gentoo-sources-4.19.44 but you want to keep it, use
27
28 # emerge --noreplace sys-kernel/gentoo-sources:4.19.44
29
30 Note the colon.
31
32 Neil's method is better, as once you implement it you never have to do
33 anything again.