1 |
On Tue, Dec 19, 2017 at 8:15 PM, Neil Bothwick <neil@××××××××××.uk> wrote: |
2 |
|
3 |
> On Tue, 19 Dec 2017 16:51:27 +1100, Adam Carter wrote: |
4 |
> |
5 |
> > When i depclean i use -av --depclean --exclude gcc --exclude |
6 |
> > gentoo-sources, since i like keep 2 gcc's around and I look after |
7 |
> > sources manually. |
8 |
> |
9 |
> You can prevent depclean from removing gcc and kernel like this |
10 |
> |
11 |
> % cat /etc/portage/sets.conf |
12 |
> [kernels] |
13 |
> class = portage.sets.dbapi.OwnerSet |
14 |
> world-candidate = False |
15 |
> files = /usr/src |
16 |
> |
17 |
> [gcc] |
18 |
> class = portage.sets.dbapi.OwnerSet |
19 |
> world-candidate = False |
20 |
> files = /usr/x86_64-pc-linux-gnu/gcc-bin |
21 |
> |
22 |
> Then add @kernels and @gcc to world_sets. I do this and now those |
23 |
> packages have to be unmerged manually. |
24 |
> |
25 |
|
26 |
Nice. I feel like i should look into that an learn more about Gentoo, but |
27 |
then; |
28 |
|
29 |
alias depclean="emerge -av --depclean --exclude gcc --exclude |
30 |
gentoo-sources" |
31 |
|
32 |
And the motivation is gone. |