Best way to exterminate a port
Torsten Zuehlsdorff
mailinglists at toco-domains.de
Tue Jul 12 10:02:50 UTC 2016
On 12.07.2016 07:33, Freddie Cash 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 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
More information about the freebsd-ports
mailing list