Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Remove package from system set in custom profile
Date: Fri, 17 Feb 2012 04:44:52
Message-Id: pan.2012.02.17.04.43.20@cox.net
In Reply to: [gentoo-dev] Remove package from system set in custom profile by "Canek Peláez Valdés"
1 Canek Peláez Valdés posted on Thu, 16 Feb 2012 19:26:22 -0600 as
2 excerpted:
3
4 > Hi; I'm trying to make a custom profile, and I need to remove a package
5 > from the system set. Is there a way I can do this without editing
6 > /usr/portage/profiles/base/packages?
7 >
8 > Sorry if this is the wrong place for asking such a question.
9
10 FWIW, gentoo-dev is for development related questions. The right place
11 would be the gentoo-user list. Not really right but better than the
12 general gentoo-dev list would be the portage-devel list.
13
14 Never-the-less and not to send you away empty-handed, yes of course
15 there's a way to override it locally. Gentoo wouldn't be gentoo
16 otherwise. =:^)
17
18 See the portage (5) manpage, in particular, a search on
19 "/etc/portage/profile" in that manpage, plus the note under the packages
20 file description (in the /etc/make.profile/ section) about removing
21 packages from the system set.
22
23 More specifically, here's my /etc/portage/profile/packages:
24
25 # I don't need these
26 -*sys-apps/busybox
27 -*sys-apps/module-init-tools
28
29 If the package is listed as a dependency somewhere as well, you may need
30 to add an entry to packages.provided in the same dir, as well. For
31 example, from mine (I build everything I need into the kernel,
32 no kernel modules so no module-init-tools needed to load them, either):
33
34 sys-apps/module-init-tools-9999
35
36 --
37 Duncan - List replies preferred. No HTML msgs.
38 "Every nonfree program has a lord, a master --
39 and if you use the program, he is your master." Richard Stallman

Replies

Subject Author
Re: [gentoo-dev] Re: Remove package from system set in custom profile "Canek Peláez Valdés" <caneko@×××××.com>