Gentoo Archives: gentoo-user

From: David Rosenbaum <rosenbaumd181@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is it OK to get rid of app-alternatives/* ?
Date: Fri, 03 Mar 2023 00:52:47
Message-Id: CAL+8heNV-243onNhz2azpHpeCDOxjAUz9aoVis-zAwqgajpVDw@mail.gmail.com
In Reply to: Re: [gentoo-user] Is it OK to get rid of app-alternatives/* ? by Neil Bothwick
1 Thanks
2
3 Dave
4
5 On Sun, Feb 19, 2023, 05:31 Neil Bothwick <neil@××××××××××.uk> wrote:
6
7 > On Wed, 15 Feb 2023 23:09:54 -0500, Walter Dnes wrote:
8 >
9 > > > It's bad enough depclean deleting the active kernel if you don't
10 > > > watch out, without something deciding to install a non-existent
11 > > > kernel and deleting the live one :-)
12 > >
13 > > I have my own hand-coded script that runs "emerge --pretend
14 > > --depclean" and tweaks/filters the output into another script called
15 > > "cleanscript". I've set it to filter out "gentoo-sources". I then
16 > > inspect "cleanscript" before running it. And, oh yeah, depclean wants
17 > > to remove nano. I had to "emerge -n nano" to protect it.
18 >
19 > You can add kernel sources to a set so they are never depcleaned
20 >
21 > % cat sets.conf
22 > [kernels]
23 > class = portage.sets.dbapi.OwnerSet
24 > world-candidate = False
25 > files = /usr/src
26 >
27 > Then emerge -n @kernels
28 >
29 > I do the same with gcc so I can keep the previous version
30 >
31 > [gcc]
32 > class = portage.sets.dbapi.OwnerSet
33 > world-candidate = False
34 > files = /usr/x86_64-pc-linux-gnu/gcc-bin
35 >
36 >
37 > --
38 > Neil Bothwick
39 >
40 > For security reasons, all text in this mail
41 > is double-rot13 encrypted.
42 >