pkg_deinstall or pkg_delete

Parv parv at
Tue May 11 13:33:02 PDT 2004

in message <75f3f705040510202240a5eae3 at>, wrote Roop
Nanuwa thusly...
> On Mon, 10 May 2004 22:45:42 -0400, Chiang Seng Chang
> <cs at> wrote:
> > 
> > What's the difference between pkg_deinstall and pkg_delete ?
> pkg_deinstall is a wrapper for pkg_delete that supports wildcards
> and dependency recursion.

Pkg_delete handles wildcards just fine.  Or, is it just the partial
port string, case sensitive, that it can handle?  I do not have any
ports to deinstall handy right now to test.

> > If I use portinstall to install a port, which should I use to
> > uninstall it ?
> If it's a single port that you want to delete on its own then
> either will suffice.  If you want to do a recursive uninstall or
> delete multiple packages then you'll probably want to make use of
> pkg_deinstall.

Pkg_delete can delete ports given as a list just like it can delete
single port; it, however, does not recurse like pkg_deinstall.

I have not used pkg_deinstall to recursively ports much; I like
pkg_delete better, more so in case of inconsistent state of
installed dependencies.

  - Parv


More information about the freebsd-questions mailing list