remove all installed packages

Sergei G sergeig.public at gmail.com
Tue Dec 29 09:28:50 UTC 2015


That's my procedure as well:

   pkg delete -a
   pkg remove -f pkg

I also have the following 3rd command (not sure if it matters):

   rm -r /var/db/pkg


On 12/28/15 12:28 PM, Matthias Apitz wrote:
> El día Tuesday, December 08, 2015 a las 02:25:55PM -0600, Adam Vande More escribió:
>
>> Much depends on what is exactly installed but in general that looks like a
>> pretty terrible idea.  If you're willing to going that far, just recreate
>> the whole system.
>>
>> Otherwise pkg delete -a
> At the end of the day, I used this 'pkg delete -a', followed by an
> additional
>
> # pkg delete -f pkg
>
> and all was fine cleared and ready to be re-installed from the ports;
>
> 	matthias
>



More information about the freebsd-questions mailing list