On Sat, 28 Aug 2010 04:55:46 -0500
Robert T Childers <[email protected]> wrote:
> Earlier today I had to remove gnu-gs-fonts-std before I could upgrade 
> ghostscript-gpl. I can't remember if I just didn't try cave resolve
> -xz hplip -U media-fonts/gnu-gs-fonts-std or not, but I tried to
> remove just that one package with cave purge. I couldn't get it to
> remove just the one package. Instead I ended up falling back on
> paludis --uninstall media-fonts/gnu-gs- fonts-std
> --permit-unsafe-uninstalls. 
> 
> Is there a way to do the above command in cave instead of paludis.

'cave purge' is like 'paludis --uninstall-unused'. It takes no targets
(and in the next release will give an error if you try to specify any).

'cave uninstall' is like 'paludis --uninstall'.

'cave resolve !foo' is like 'paludis --uninstall', except that it
doesn't care if there are no versions of foo installed, and it uses
the usual target logic if there are multiple slots of foo installed.

'cave resolve --purge blah' doesn't have a paludis equivalent, since
the old resolver didn't check for newly unused packages as a result of
changes. You can only use 'cave resolve --purge' when the resolver
suggests it, anyway -- it won't purge something if it doesn't think
it's newly unused.

So, if you're looking to do the uninstall first:

    cave uninstall gnu-gs-fonts-std --uninstalls-may-break '*/*'

Usually the resolver can work out that it needs to remove things on its
own, though, in which case 'resolve -U' would have worked. But at a
glance I don't see any blockers on either of those packages, so
neither I nor the resolver appears to know why you want to uninstall
anything.

If there should be blockers but aren't, you can do:

    cave resolve hplip !gnu-gs-fonts-std

If you need to force gnu-gs-fonts-std to be removed first, rather than
relying upon an arbitrary ordering, you *might* be able to force that
using --early gnu-gs-fonts-std --late hplip, although early and late
are currently fairly weak hints.

-- 
Ciaran McCreesh

Attachment: signature.asc
Description: PGP signature

_______________________________________________
paludis-user mailing list
[email protected]
http://lists.pioto.org/mailman/listinfo/paludis-user

Reply via email to