From owner-freebsd-questions@freebsd.org Tue May 1 11:29:27 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 0ED63FA893B for ; Tue, 1 May 2018 11:29:27 +0000 (UTC) (envelope-from robert@webtent.org) Received: from mx2.webtent.net (mx2.webtent.net [216.139.202.4]) by mx1.freebsd.org (Postfix) with ESMTP id 928776DC15 for ; Tue, 1 May 2018 11:29:26 +0000 (UTC) (envelope-from robert@webtent.org) Received: from localhost (localhost [127.0.0.1]) by mx2.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTP id 23FBBD7D5A; Tue, 1 May 2018 07:29:25 -0400 (EDT) Received: from mx2.webtent.net ([127.0.0.1]) by localhost (mx2.webtent.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 02865-02; Tue, 1 May 2018 07:29:24 -0400 (EDT) Received: from [192.168.1.112] (media.rfitz.com [96.254.71.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robert@mx2.webtent.net) by mx2.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTPSA id 5F0F2D7979; Tue, 1 May 2018 07:29:24 -0400 (EDT) Message-ID: <5AE84F94.2050604@webtent.org> Date: Tue, 01 May 2018 07:29:24 -0400 From: Robert Fitzpatrick User-Agent: Postbox 5.0.25 (Windows/20180328) MIME-Version: 1.0 To: Steve O'Hara-Smith CC: goksin.akdeniz@gmail.com, Robert Fitzpatrick via freebsd-questions Subject: Re: Upgrading 10.4 to 11.1 References: <5AE783D2.40004@webtent.org> <20180501001407.7752facafb7593fd6aa252c1@gmail.com> <5AE78836.30106@webtent.org> <20180501072305.faafbe6cf2a13d3e24156568@sohara.org> In-Reply-To: <20180501072305.faafbe6cf2a13d3e24156568@sohara.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: WebTent Mailguard 1.0.3 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 11:29:27 -0000 Steve O'Hara-Smith wrote: > On Mon, 30 Apr 2018 17:18:46 -0400 > Robert Fitzpatrick via freebsd-questions > 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. > The pkg leaf doesn't seem to list all installed packages. It does not list apache24 or aspell or autoconf and more. At first I thought it was not listing packages not found in ports, but I see mysql51-server-5.1.73_2 on the list. -- Robert