Date: Thu, 28 Jan 2021 11:46:07 -0500 (EST) From: Doug Denault <doug@safeport.com> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: generate top-level pkg install list? Message-ID: <alpine.BSF.2.00.2101281145090.42569@bucksport.safeport.com>
next in thread | raw e-mail | index | archive | help
On Thu, 28 Jan 2021, Gary Aitken wrote: >>>> Any ideas for how to generate a list of packages installed >>>> deliberately and in sequence? >> >>> pkg prime-origins. It's in alphabetic order. Date can come from: >>> >>> pkg info <name> | egrep "Name|Installed" >> >> Thanks. I had the pkg info part, it was the pkg query part I >> needed. I see prime-origins is an alias; it doesn't show up in pkg >> help unless you already know about it. >> >> Seems like a note in pkg-message for the pkg port about the alias >> file would be a good idea. I just stumbled onto it last week, >> myself. > > wouldn't "pkg help" would be a better place, and a modification of the man > page to indicate the aliases don't show up in the individual "pkg help <cmd>" > results? > > Something like: > > man pkg: > alias List ... > Note that aliases for individual commands are not listed when > "pkg help <command>" is done. > > pkg help: > Note on aliases: > Aliases for specific commands are not listed when "pkg help <command>" > is done. To list aliases specific to a command, try "pkg alias | grep > <command>", e.g. "pkg alias | grep query" Maybe if enough people ask. I danced this dance in an earlier thread and submitted a PR (rejected). The answer is somewhat akin to "real men use ed". :) _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-217-9220 Fax: 301-217-9277
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.2101281145090.42569>