Mark Knecht wrote:
Generally speaking, something like:

1) emerge -Cp package
2) emerge -pv --deep --update --newuse world
3) emerge -pv --depclean
4) revdep-rebuild -p

This should get rid of a package and any dependencies that are no longer needed.

NOTE: There have been some discussions about needing to do one or more
of these steps multiple times. Hopefully my answer will spur someone
with knowledge of that to point out if and when that is required.

Cheers,
Mark


At build time, some packages will link against unwanted libraries.  Even though 
the unwanted library may not be strictly required, the ebuild may not support a 
way to disable it with use flags.  For this reason, it's a good idea to add 
another step to your sequence:

1.5) emerge -av depclean

Some libraries that seem to actually link against the installed version at 
build time.  This results in broken dynamic links when the installed version is 
replaced with the freshly built one.  In these situations, a simple workaround 
is to unmerge the installed version before rebuilding it.

Zac
--
gentoo-user@gentoo.org mailing list

Reply via email to