View previous topic :: View next topic |
Author |
Message |
pvar n00b
Joined: 18 Jan 2006 Posts: 10 Location: Athens, Greece
|
Posted: Wed May 23, 2007 7:49 am Post subject: [SOLVED] moving gnome (or gnome-light) out of "world fi |
|
|
I want to remove some of the packages that came along with GNOME.
I'm using gentoo for a long time now and I know that I could just do
something like this:
Code: |
emerge -C "application_name"
|
Seems right, but it's not!!
You see, the next time I will upgrade world, portage will think that it must
install the application I removed (as being a part of the GNOME meta-package).
So, is there a permanent solution to this problem (removing a part of GNOME)??
I guess that I could "edit" the GNOME ebuild, but this is way too hardcore for me!
Apart from that. updating portage will restore the ebuild to the original form (I guess)!
I was thinking of manually removing the "gnome" entry from the world file...
and then (manually again) adding the appropriate entries (for the installed components)...
Any ideas/suggestions?
Thanks in advance!
Last edited by pvar on Fri May 25, 2007 5:17 pm; edited 1 time in total |
|
Back to top |
|
|
Kaste Guru
Joined: 21 Dec 2005 Posts: 546 Location: /home Sweet /home
|
Posted: Wed May 23, 2007 10:31 am Post subject: |
|
|
Depending on what you want to get rid of i would recommend /etc/make.profile/package.provided or a gnome-light meta with whatever else you need to add on. I guess you considered the latter but still i would prefer that solution since only the really necessary stuff is installed then and those you need for sure. If youremove something in that meta you will probably run into trouble. Same holds for package.provided. You have to make really sure you don't get rid of something that some other package depends upon.
Following is an excerpt from man portage explaining. package.provided
Code: |
package.provided
A list of packages (one per line) that portage should assume have been provided. Useful for porting to
non-Linux systems. Portage will not attempt to update a package that is listed here unless another pack-
age explicitly requires a version that is newer than what has been listed. Basically, it's a list that
replaces the emerge --inject syntax.
For example, if you manage your own copy of a 2.6 kernel, then you can tell portage that 'sys-ker-
nel/development-sources-2.6.7' is already taken care of and it should get off your back about it.
Virtual packages (virtual/*) should not be specified in package.provided. Depending on the type of vir-
tual, it may be necessary to add an entry to the virtuals file and/or add a package that satisfies a vir-
tual to package.provided.
Format:
- comments begin with #
- one DEPEND atom per line
- relational operators are not allowed
- must include a version
Example:
# you take care of the kernel
sys-kernel/development-sources-2.6.7
# you installed your own special copy of QT
x11-libs/qt-3.3.0
# you have modular X but packages want monolithic
x11-base/xorg-x11-6.8
|
_________________ I'm a membar of Mesnar and me scull contains wakky secrets! |
|
Back to top |
|
|
red-wolf76 l33t
Joined: 13 Apr 2005 Posts: 714 Location: Rhein-Main Area
|
Posted: Wed May 23, 2007 12:05 pm Post subject: |
|
|
Code: | emerge -C gnome && emerge gnome-light && emerge -p --depclean |
Then as above. Unmerge what you can live without and put it in package.provided to avoid re-emerging. Be sure not to discard any library dependencies.
and running dep -s may also help.
Another way would be to emerge -C gnome && emerge -p gnome-light, then merge all the packages listed manually (omitting gnome-light itself, of course) and then doing an emerge -p --depclean to see what portage wants to ditch. _________________ 0mFg, G3nt00 r0X0r$ T3h B1g!1111
Use sane CFLAGS! If for no other reason, do it for the lulz! |
|
Back to top |
|
|
pvar n00b
Joined: 18 Jan 2006 Posts: 10 Location: Athens, Greece
|
Posted: Wed May 23, 2007 1:15 pm Post subject: |
|
|
Thanks a lot!
Both your answers were very useful!! |
|
Back to top |
|
|
red-wolf76 l33t
Joined: 13 Apr 2005 Posts: 714 Location: Rhein-Main Area
|
Posted: Wed May 23, 2007 2:04 pm Post subject: |
|
|
If you're not using Evolution or anything depending on its data-server, you can also add "-eds" to the USE variable in your make.conf file. Takes a bit of fiddling to really put down, but makes the world smaller! _________________ 0mFg, G3nt00 r0X0r$ T3h B1g!1111
Use sane CFLAGS! If for no other reason, do it for the lulz! |
|
Back to top |
|
|
|