Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2021 15:36:47 -0700
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        "Steve O'Hara-Smith" <steve@sohara.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: generate top-level pkg install list?
Message-ID:  <9d2c734c-5dfd-18f4-8ae6-3983472e9d40@dreamchaser.org>
In-Reply-To: <20210127210303.7c906ac962560d33c3e77a4c@sohara.org>
References:  <23d9f371-b023-6647-4a63-b9e4a9e6ca61@dreamchaser.org> <20210127210303.7c906ac962560d33c3e77a4c@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/27/21 2:03 PM, Steve O'Hara-Smith wrote:
> On Wed, 27 Jan 2021 13:49:55 -0700
> Gary Aitken <freebsd@dreamchaser.org> wrote:
> 
>> I'm having trouble figuring out how to generate a top level list of
>> packages to install.  In the past, I've worked off a manual list, but as
>> I've added a few things over time I'm wondering if it's possible to
>> generate such a list from the pkg output.
> 
> 	If you have the aliases in /usr/local/etc/pkg.conf then:
> 
> pkg leaf
> 
> 	otherwise either fix that or:
> 
> pkg query -e '%#r == 0' '%n-%v'

Thanks!
I was trying to use pkg info and it was looking to be a lot of work.

Gary



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9d2c734c-5dfd-18f4-8ae6-3983472e9d40>