remove all installed packages
Matthias Apitz
guru at unixarea.de
Wed Dec 9 07:50:27 UTC 2015
El día Tuesday, December 08, 2015 a las 06:22:27PM -0500, kpneal at pobox.com escribió:
> On Tue, Dec 08, 2015 at 09:29:17PM +0100, Matthias Apitz wrote:
> > El día Tuesday, December 08, 2015 a las 12:21:54PM -0800, Brian W. escribió:
> >
> > > That /usr/local rm is gross overkill. If you have the old pkg system an ls
> > > of /var/db/pkg with the results sent to pkg_del would work.
> >
> > Sorry, I was asking to remove completely all ports installed with
> > pkg(8), and this in a fast way w/o going through all dependencies; just
> > to prepare for a complete fresh installation.
>
> It also deletes any customized configuration files in "/usr/local/etc".
>
> If you must go this route then make a point of not accidentally deleting
> something you'll have wanted to keep.
I maintain a list of all modified or added files below /usr/local, and
based on this backups of them;
thanks for all hints, yours and others;
matthias
--
Matthias Apitz, ✉ guru at unixarea.de, 🌐 http://www.unixarea.de/ ☎ +49-176-38902045
More information about the freebsd-questions
mailing list