gentoo is less hand holding than redhat.  so when you go to remove something 
that something else depends on it, portage just assumes that you know what 
you're doing.

if you're looking to remove no longer required packages, try out:

  # emerge --pretend --depclean world

this will blow away any packages that are no longer required by other 
packages.  but READ THE WARNINGS that will get printed to the screen, as the 
tool is not bright enough to *not* remove packages that while nothing depends 
on them, you'd very much like to keep it.

--depclean will display a list of stuff it will remove, and if you're not sure 
you want to remove it, then emerge it explicitly.

lastly, USE flags greatly affect what depclean does.  so if you compiled php 
for use with "java" in your use flags, and then remove that flag, your java 
package will appear in the list of "to be removed"...  you may have to 
recompile php.

to the portage folk:  "how hard would it be to modify depclean to look out for 
this issue?"

-- 
a man who feels the winds of change should build not a windbreak,
but a windmill.
        - mao tse tung


On March 15, 2003 09:54 am, [EMAIL PROTECTED] wrote:
> Being new to gentoo linux and a seasoned Red Hat Linux
> user, I did not get the idea of how to preventing
> removing a package that is required by another
> installed package yet.
>
> For instance, if I have vim installed, which requires
> sys-libs/libtermcap-compat, emerge does not complain
> when unmerging sys-libs/libtermcap-compat.
>
> How do it safely unmerge packages, preserving
> dependencies?


--
[EMAIL PROTECTED] mailing list

Reply via email to