From owner-freebsd-questions@freebsd.org Tue May 1 08:08:05 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 398A3FB5D9E for ; Tue, 1 May 2018 08:08:05 +0000 (UTC) (envelope-from srs0=x6fh=hu=mail.sermon-archive.info=doug@sermon-archive.info) Received: from mail.sermon-archive.info (sermon-archive.info [71.177.216.148]) by mx1.freebsd.org (Postfix) with ESMTP id C06F2813E0 for ; Tue, 1 May 2018 08:08:04 +0000 (UTC) (envelope-from srs0=x6fh=hu=mail.sermon-archive.info=doug@sermon-archive.info) Received: from [10.0.1.251] (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 40Zv3X5Vc2z2fjRk; Tue, 1 May 2018 01:00:40 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Upgrading 10.4 to 11.1 From: Doug Hardie In-Reply-To: <20180501072305.faafbe6cf2a13d3e24156568@sohara.org> Date: Tue, 1 May 2018 01:00:40 -0700 Cc: Robert Fitzpatrick via freebsd-questions Content-Transfer-Encoding: quoted-printable Message-Id: <4859E693-65B7-4844-B1D7-96C2CA570477@mail.sermon-archive.info> References: <5AE783D2.40004@webtent.org> <20180501001407.7752facafb7593fd6aa252c1@gmail.com> <5AE78836.30106@webtent.org> <20180501072305.faafbe6cf2a13d3e24156568@sohara.org> To: Steve O'Hara-Smith X-Mailer: Apple Mail (2.3445.6.18) X-Virus-Scanned: clamav-milter 0.99.4 at mail X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2018 08:08:05 -0000 > On 30 April 2018, at 23:23, Steve O'Hara-Smith = wrote: >=20 > On Mon, 30 Apr 2018 17:18:46 -0400 > Robert Fitzpatrick via freebsd-questions = > wrote: >=20 >> Is there a way to delete and put back all the packages currently >> installed? >=20 > Here's one way using the handy pkg leaf alias to get packages = with > no dependencies. >=20 > pkg leaf > my_packages > pkg delete -a > pkg install `cat my_packages` >=20 > If my_packages is large you may need to use xargs instead of > backticks. Interesting. The leaf command is not documented in the -l list or in = the man page. However, it works just as described above. -- Doug