Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 2021 11:44:20 -0500 (EST)
From:      Doug Denault <doug@safeport.net>
To:        Gary Aitken <freebsd@dreamchaser.org>
Cc:        Kevin Oberman <rkoberman@gmail.com>, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: generate top-level pkg install list?
Message-ID:  <alpine.BSF.2.00.2101281141380.76954@bucksport.safeport.com>
In-Reply-To: <4bbf2f4f-a187-78af-f875-6e03b39f54f6@dreamchaser.org>
References:  <23d9f371-b023-6647-4a63-b9e4a9e6ca61@dreamchaser.org> <14a2618-5268-fa37-8a21-76dcd0a9bab4@fledge.watson.org> <e70febe9-7bbe-9eb6-edad-6b3a9cc58140@dreamchaser.org> <CAN6yY1sLTjA9Pf3uLadYiYK3_QsUPYceQY56mEKUpahNXb%2BQ2Q@mail.gmail.com> <4bbf2f4f-a187-78af-f875-6e03b39f54f6@dreamchaser.org>

next in thread | previous 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.2101281141380.76954>