Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2016 10:32:58 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        Mario Lobo <lobo@bsd.com.br>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pkg delete dilema
Message-ID:  <20160606083258.GA3697@c720-r292778-amd64>
In-Reply-To: <20160511092601.6032ef9f@Papi>
References:  <CA%2ByoEx8cXJk7FGvk9EBqhzj6V8gTSCL_vdhjknJCJqhYqVgwuA@mail.gmail.com> <b80b3cf8-858b-3c88-0791-674ee6002f28@FreeBSD.org> <86inylhd5s.fsf@WorkBox.Home> <20160511084754.5b2e9d05@Papi> <20160511115637.GA4375@c720-r292778-amd64> <20160511092601.6032ef9f@Papi>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Wednesday, May 11, 2016 a las 09:26:01AM -0300, Mario Lobo escribió:

> > I compile all my ~1800 packages on some other host with poudriere and
> > install them from time to time from my own repository with:
> > 
> > # pkg delete -a
> > # pkg delete -f pkg
> > # pkg-static install ...
> > 
> > This works nice, fast and clean.
> > 
> > 	matthias
> > 

In addition to the procedure above, I did this time before the deletion
of all packages:

# pkg query '%a %n' | fgrep '0 ' | sed 's/0 //' > what-I-have-installed.txt

this gives you in the file what-I-have-installed.txt a list of what you
have installed, i.e. without dependency packages;

later you just run this list from a script

# sh
# while read name; do                                                                         
     pkg install -y $name                                                                      
  done <  what-I-have-installed.txt

and you have all back again as before;

	matthias
-- 
Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
"Die Verkaufsschlager des Buchmarkts geben Auskunft über den Zustand einer Gesellschaft bzw.
sind, was diese Zeiten angeht, Gradmesser fortschreitenden Schwachsinns. ..." (jW 19.05.2016)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160606083258.GA3697>