remove all installed packages

Erich Dollansky erichsfreebsdlist at alogt.com
Tue Dec 29 08:01:25 UTC 2015


Hi,

On Tue, 29 Dec 2015 07:28:42 +0100
Matthias Apitz <guru at unixarea.de> wrote:

> El día Tuesday, December 29, 2015 a las 08:00:50AM +0800, Erich
> Dollansky escribió:
> 
> > On Mon, 28 Dec 2015 21:28:33 +0100
> > Matthias Apitz <guru at unixarea.de> wrote:
> >   
> > > # pkg delete -f pkg
> > >   
> > did you take a look at /use/local?  
> 
> Yes, I did even a backup:
> 
> # cd /usr/local
> # tar cf etc.tar etc
> # mv poudiere poudiere.saved    (contains all my jails)
> 
THis is yours then.

> > It should be empty if you did not install own software.  
> 
> No, it should not and it wasn't. The deletion did not removed config
> files in /usr/local/etc, for example.
> 
I always forget this.

> > > and all was fine cleared and ready to be re-installed from the
> > > ports; 
> > This is what has to be expected.  
> 
> Yes. I svn updated /usr/ports and 'make installed' only two ports:
> 
> ports-mgmt/pkg
> ports-mgmt/poudriere-devel
> 
> and tested my old poudriere jail; it worked fine.
> 
You achieved what you wanted then.

Erich


More information about the freebsd-questions mailing list