Re: how to get info of all packages

From: Yuri <yuri_at_aetern.org>
Date: Fri, 26 May 2023 07:06:20 UTC
hl wrote:
> i'd like to get info of all packages, in format below:
> 
> http://ftp.sunet.se/debian/dists/bullseye/main/binary-i386/Packages.gz
> 
> does any mirror have such file for freebsd 12? Thanks!

See pkg-rquery(1), you can set the format you want yourself.  To give
you some ideas (output will be huge, redirect to file):

pkg rquery -a 'Name: %n\nComment: %c\nVersion: %v\nMaintainer: %m\n'