Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2016 09:41:53 +0200
From:      Torsten Zuehlsdorff <mailinglists@toco-domains.de>
To:        Freddie Cash <fjwcash@gmail.com>, Kurt Jaeger <lists@opsec.eu>
Cc:        bob prohaska <fbsd@www.zefox.net>, freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: Best way to exterminate a port
Message-ID:  <530df480-5407-62c9-afc4-62d4dc4e7370@toco-domains.de>
In-Reply-To: <CAOjFWZ5xbBUEokq8qRgNee4vTd0UVojfBzLt_K9ZNrNHiyrNMg@mail.gmail.com>
References:  <20160712002734.GE33486@www.zefox.net> <20160712052219.GE95302@home.opsec.eu> <CAOjFWZ5xbBUEokq8qRgNee4vTd0UVojfBzLt_K9ZNrNHiyrNMg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 12.07.2016 07:33, Freddie Cash wrote:
> On Jul 11, 2016 10:22 PM, "Kurt Jaeger" <lists@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 help delete says:

      -R, --recursive
                 Delete all packages that require the listed packages as 
well.

Also if the dependencies were installed as dependencies, just do an "pkg 
autoremove" after deletion.

If not do some shell magic like:
pkg info -d gtk2 | tail -n+2 | awk '{ print $1 }' | xargs pkg delete

Greetings,
Torsten



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?530df480-5407-62c9-afc4-62d4dc4e7370>