Skip to main content
edited tags; edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Source Link
daniel kullmann
  • 9.7k
  • 11
  • 41
  • 48

Safely uninstall a package in Gentoo

I wanted to uninstall a specific package in Gentoo and browsed through the emerge man page. I found the --unmerge option:

WARNING: This action can remove important packages! Removes all matching packages. This does no checking of dependencies, so it may remove packages necessary for the proper operation of your system.Its arguments can be atoms or ebuilds. For a dependency aware version of --unmerge, use --depclean or --prune.

However, I'd like emerge to check whether the package I want to uninstall is required by any other installed package in the system. --depclean and --prune don't provide that functionality:

  • --depclean removes packages that were installed as dependencies, but are not needed anymore
  • --prune "removes all but the highest installed version of a package from your system"

Is there no dependency-checking version of --unmerge?