First find out what the reverse dependencies are and then remove them.
Finding out what they are can be done usingequery
from gentoolkit
. Starting it in the depends
(d
) mode will find the direct dependencies and the --indirect
(-D
) flag will recursively look at their reverse dependencies.
You can get a copy/pasteable list of all these packages (source package not be printed there) using:
equery d -D octave | sed 's/^ *\([^ ]*\)-[0-9].*/\1/' | sort -u | tr '\n' ' '
Note that his will only look at installed packages. If you have have already removed packages, you may have to rebuild missing dependencies (using some variation of emerge @world
) before equery
finds the reverse dependencies "behind" them.