Is it LIST?pkg info > /net/all.txt
pkg info > /net/all.txt
pkg query %n-%v
	‑%v). FYI, the standard/distributed /usr/local/etc/pkg.conf defines some useful shortcuts (under ALIAS), for example  pkg noauto.That list includes both automatically and explicitly installed packages. What you want is a list of explicitly installed packages as the rest are dependencies and are automatically installed. UseHi.
I was able to get the list of all packages with the
#pkg query %n>pkglist.txt
command and convert this list into plain text with the "selection/combine lines" option of the "kate" program.
Thank you to those who are interested.
 pkg prime-list > pkglist.txt instead. pkg prime-list or  pkg prime-origins. Both are aliases for a pkg-query(8):prime-list           'query -e '%a = 0' '%n''
prime-origins        'query -e '%a = 0' '%o''
	     %a  Returns 1 if the matched package was automatically installed as a
         dependency of another package, 0 otherwise.  The package can be
         automatically removed via ‘pkg autoremove’ when this flag is set and
         no other package depends on it.