Search:  
Gentoo Wiki

HOWTO_Remove_metapackage

This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

This article is still a Stub. You can help Gentoo-Wiki by expanding it.

Howto remove a metapackage

  1. Don't remove the metapackage yet. If you've removed it already, re-emerge it with emerge <metapackage name>.
  2. Unset any related USE flags in /etc/make.conf and /etc/portage/package.use (for example, if you're removing kde, you might want to set -kde and -arts at least).
  3. Issue the command emerge -pv --depclean. It will give you a list of packages Portage wants to uninstall. These are packages that are not in the world file, and are not dependencies of packages in the world file. Your goal here is to empty this list of packages.
    • Read the instructions carefully. They tell you what to do with packages you want to keep.
    • It should also tell you to run emerge --newuse (or -N) if you haven't already. Do this as it says, especially if you changed your USE flags in step 2.
    • If you don't recognise a package, and it looks like an important one, you should probably keep it.
    • When all that's left in the list is junk, run the emerge -av --depclean. After one last sanity check, type 'y'.
  4. Now remove the metapackage with emerge -C <metapackage name>.
  5. Issue the command emerge -av --depclean again. This time it should only contain dependencies of the metapackage. As before, if you want to keep any of these, do so as the instructions tell you. Otherwise, say 'y' and remove them.
  6. Programs you have emerged since installing the metapackage may now be depend on a removed package and therefore be broken. Run revdep-rebuild to gather up broken packages and automatically rebuild them.

See also

Retrieved from "http://www.gentoo-wiki.info/HOWTO_Remove_metapackage"

Last modified: Wed, 26 Dec 2007 13:58:00 +0000 Hits: 8,785