ports: deinstall-all

Paul Schmehl pschmehl_lists at tx.rr.com
Sat Nov 17 22:18:27 UTC 2012


--On November 17, 2012 11:25:11 PM +0200 Alexander Kapshuk 
<alexander.kapshuk at gmail.com> wrote:

> On 11/13/2012 09:02 AM, Bernt Hansson wrote:
>> If you really want to remove all installed ports you can do as I do
>>
>> pkg_delete -f \*
> Perhaps not an ideal solution, but rather an alternative one, which works
> in bourn-derived shells:
>
># for p
> in `pkg_info -ao | grep '.*/.*' | sed 's;.*;/usr/ports/&;'`
> {
> cd $p && make deinstall
> }
>

All that to accomplish this?  pkg_deinstall -fa

Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell



More information about the freebsd-questions mailing list