1 |
On 11/07/2017 13:51, Ста Деюс wrote: |
2 |
> Hi. |
3 |
> |
4 |
> |
5 |
> Is it possible to remove a package from a profile? -- I try to remove |
6 |
> absolutely unnecessary to me openssh package from default/linux/x86 |
7 |
> profile that beside each time necessity to compile, just reduces system |
8 |
> security. So, i did mask it, having created an openssh file |
9 |
> in /etc/portage/packages.mask dir. Removed already installed package |
10 |
> from the system and then tried to update the system. -- Openssh is |
11 |
> enlisted to be compiled/installed among other packages! So, what's the |
12 |
> recipe here? |
13 |
> |
14 |
> |
15 |
> Thank you for your time, |
16 |
> Sthu. |
17 |
> |
18 |
|
19 |
|
20 |
Yeah, you really don't want to do that. |
21 |
|
22 |
virtual/ssh is listed in the base profile, so every Gentoo system on the |
23 |
planet starts off with it included. It's the server and the client, so |
24 |
if you don't want the server running, then don't start it (your security |
25 |
argument doesn't really hold water), and the client is about the second |
26 |
most useful piece of software there is, up there with compilers and shells |
27 |
|
28 |
It's not a big package: |
29 |
$ equery size openssh |
30 |
* net-misc/openssh-7.5_p1-r2 |
31 |
Total files : 70 |
32 |
Total size : 5.68 MiB |
33 |
|
34 |
Compiles rather quickly too: |
35 |
$ genlop -t openssh |
36 |
* net-misc/openssh |
37 |
Tue Jul 4 04:43:52 2017 >>> net-misc/openssh-7.5_p1-r2 |
38 |
merge time: 53 seconds. |
39 |
|
40 |
So I think you are cargo-culting and trying to remove something with |
41 |
zero understanding of why it is there. But it annoys you |
42 |
|
43 |
But if you really want to shoot both feet off at the knees, read on: |
44 |
|
45 |
You can't modify a profile, nothing in them is optional. You have to |
46 |
take an existing profile then extend and modify it. Look at |
47 |
defaults/linux/x86/* and see how they extend x86. |
48 |
|
49 |
The magic line that does what you desire goes in a file called |
50 |
"packages", look at this example from prefix: |
51 |
|
52 |
$ cat ./prefix/linux/packages |
53 |
# Here we remove packages that default/linux/packages pulls in and have |
54 |
# no business being in Gentoo Prefix |
55 |
-*sys-apps/busybox |
56 |
-*sys-apps/util-linux |
57 |
|
58 |
|
59 |
-- |
60 |
Alan McKinnon |
61 |
alan.mckinnon@×××××.com |