generate top-level pkg install list?

Doug Denault doug at safeport.com
Thu Jan 28 16:46:14 UTC 2021


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 at safeport.com
Voice: 301-217-9220
   Fax: 301-217-9277


More information about the freebsd-questions mailing list