Edgar Pettijohn wrote:
> On Jan 17, 2019 7:35 AM, Pedro Pinho <[email protected]> wrote:
> >
> > While we are at it... is there a pkgin command to remove every installed
> package?
>
> I don't think so. I do it like so:
>
> pkg_info | awk '{print $1}' > pkgs.txt
>
> remove pkgin from the list
>
> while read -r pkg; do
> pkgin remove $pkg
> done < pkgs.txt
>
> forgive errors. I'm writing from memory on my phone.
Do you need to use pkgin (which I've never used) or can you use
pkg_delete? This will remove all installed packages:
pkg_delete -r '*'
Cheers,
Simon.