Best way to exterminate a port

Kevin Oberman rkoberman at gmail.com
Tue Jul 12 08:36:18 UTC 2016


On Mon, Jul 11, 2016 at 10:33 PM, Freddie Cash <fjwcash at gmail.com> wrote:

> On Jul 11, 2016 10:22 PM, "Kurt Jaeger" <lists at opsec.eu> wrote:
> >
> > Hi!
> >
> > > Is there an easy way to "rip out by the roots" a botched
> > > port install and start over, including re-doing all the
> > > configuration dialogs of the port and its dependencies?
> >
> > For one port:
> >
> > pkg delete port
> >
> > cd /usr/ports/<...>
> >
> > make rmconfig
>
> Isn't there an "rmconfig-recursive" target?
>
> And doesn't pkg delete have -r or -R for recursively deleting dependencies?
>

'pkg delete' will automatically do most of this by default. It's a bit of a
shock to try to delete a port and see a list of a few hundred ports being
deleted with it. E.g. png or pcre. (pkg does ask for confirmation after the
list is printed and '-f' will override and delete just the package
specified.)

"pkg info -d PACKAGE" does provide a list of a package's dependencies and
'-r' shows packages depending on the specified package.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman at gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


More information about the freebsd-ports mailing list