generate top-level pkg install list?
Gary Aitken
freebsd at dreamchaser.org
Wed Jan 27 22:41:33 UTC 2021
On 1/27/21 2:03 PM, Steve O'Hara-Smith wrote:
> On Wed, 27 Jan 2021 13:49:55 -0700
> Gary Aitken <freebsd at 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
More information about the freebsd-questions
mailing list