From owner-freebsd-questions@freebsd.org Tue May 1 09:44:17 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 C0BAFFC2607 for ; Tue, 1 May 2018 09:44:17 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3D448755C7 for ; Tue, 1 May 2018 09:44:17 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1525167857; x=1527759857; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=ac52PQJZQv5NnJfDDLOB1Gep2BhLdCAlZC2txwxX6jM=; b=w7NozW4gr4d2u2sqZ7wSkBwCnqJQ9rgns84LPN/cqN0zKDKolpv1WCdzUtovRkDfyd9fh3YiVukwCZOADVTOKaHeBlgJT+iPKMaq0A4gg6hhDmySh1XtfeJzNs48u2EuoJTqzqAaoWSK0d7Gd32Q1uPq81fxZb8ZtVVG1/pqScA= X-Thread-Info: NDI1MC4xMi45ODAwMDAwMDRjMGNiMi5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r4.us-west-2a.aws.in.socketlabs.com (r4.us-west-2a.aws.in.socketlabs.com [54.149.236.199]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 1 May 2018 05:44:08 -0400 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.us-west-2a.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 1 May 2018 05:44:05 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90_1 (FreeBSD)) (envelope-from ) id 1fDRpL-000JLB-92; Tue, 01 May 2018 09:44:03 +0000 Date: Tue, 1 May 2018 10:44:03 +0100 From: Steve O'Hara-Smith To: Doug Hardie Cc: Robert Fitzpatrick via freebsd-questions Subject: Re: Upgrading 10.4 to 11.1 Message-Id: <20180501104403.ef13e3663e7e6993f7c069ed@sohara.org> In-Reply-To: <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> <4859E693-65B7-4844-B1D7-96C2CA570477@mail.sermon-archive.info> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 09:44:18 -0000 On Tue, 1 May 2018 01:00:40 -0700 Doug Hardie wrote: > > On 30 April 2018, at 23:23, 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. > > Interesting. The leaf command is not documented in the -l list or in the > man page. However, it works just as described above. This is why $ pkg help leaf `leaf` is an alias to `query -e '%#r == 0' '%n-%v'` There's a bunch of handy aliases defined in /usr/local/etc/pkg.conf -- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/