Upgrading 10.4 to 11.1
Steve O'Hara-Smith
steve at sohara.org
Tue May 1 06:23:28 UTC 2018
On Mon, 30 Apr 2018 17:18:46 -0400
Robert Fitzpatrick via freebsd-questions <freebsd-questions at freebsd.org>
wrote:
> Is there a way to delete and put back all the packages currently
> installed?
Here's one way using the handy pkg leaf alias to get packages with
no dependencies.
pkg leaf > my_packages
pkg delete -a
pkg install `cat my_packages`
If my_packages is large you may need to use xargs instead of
backticks.
--
Steve O'Hara-Smith <steve at sohara.org>
More information about the freebsd-questions
mailing list