Fwd: pkg delete dilema

Mario Lobo lobo at bsd.com.br
Tue May 10 19:06:11 UTC 2016

2016-05-10 15:28 GMT-03:00 Matthew Seaman <matthew at freebsd.org>:

> On 10/05/2016 18:44, Mario Lobo wrote:
> > So, is there a way to tell pkg just to delete the package WITHOUT
> deleting
> > the dependent ports? If not, is there a way for me to remove just the
> > cups-client port? Or just force cups to get installed (make
> > FORCE_PKG_REGISTER=yes install issues the same problem as plain make
> above)?
> pkg delete -f cups-client
>         Cheers,
>         Matthew
Thanks Anton but I DID RTFM, but i expected to find the answer in the
obvious "man pkg", which by the way, is not there anywhere:

man pkg
delete  Delete a package from the database and the system.

That's all there is.

The only reference in there to -f is:

             This is for compatibility with the pkg(7) bootstrapper.  If pkg
             is already installed, nothing is done.

             If invoked with the (-f) flag an attempt will be made to
             pkg from remote repository.

I honestly didn't know that there are separate options for "man
pkg-command" but now, thanks to you, I do.

Thanks Matthew ;)!

Mario Lobo
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)

More information about the freebsd-questions mailing list