remove all installed packages

Matthias Apitz guru at unixarea.de
Tue Dec 29 06:28:51 UTC 2015


El día Tuesday, December 29, 2015 a las 08:00:50AM +0800, Erich Dollansky escribió:

> Hi,
> 
> On Mon, 28 Dec 2015 21:28:33 +0100
> Matthias Apitz <guru at unixarea.de> 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
> > 
> 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)

> 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.

> > 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.

	matthias

-- 
Matthias Apitz, ✉ guru at unixarea.de, 🌐 http://www.unixarea.de/  ☎ +49-176-38902045


More information about the freebsd-questions mailing list