pkg delete dilema
Matthias Apitz
guru at unixarea.de
Mon Jun 6 08:33:11 UTC 2016
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 at 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)
More information about the freebsd-questions
mailing list