NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libstdc++.so.7 is missing



Edgar Pettijohn wrote:

>  On Jan 17, 2019 7:35 AM, Pedro Pinho <pmppinho%gmail.com@localhost> 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.


Home | Main Index | Thread Index | Old Index