On 3/25/06, Constantine Kardaris <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i'd like to ask you if it's possible to unmerge the dependencies of a
> meta package that installed automatic but have recorded in world file
> after a while.
> For example, i want to unmerge gnome-light but many dependencies have
> already re-emerged without oneshot option and have recorded in world
> file. So "emerge -C gnome-light || emerge --depclean" does not help anymore.
You can find packages in world that are dependant upon something else
you have installed with a script like this:
for pkg in `cat /var/lib/portage/world` ; do
count=`equery depends $pkg | grep / | wc -l`
test "$count" -gt 0 && echo $pkg
done
You can then just remove these packages manually from world, and
depclean will work correctly if you remove any of the dependencies.
-Richard
--
[email protected] mailing list