pkg prime-origins
Doug Denault
doug at safeport.com
Mon Jan 4 16:33:52 UTC 2021
On Mon, 4 Jan 2021, Matthew Seaman wrote:
> On 04/01/2021 16:12, doug wrote:
>> On Mon, 4 Jan 2021, Victor Sudakov wrote:
>>
>>> doug wrote:
>>>> I wrote a python script to do this. Thinking their must be a better way I
>>>> tried google and got the "magic" command from a 2018 post. Two questions
>>>> when was this added and why doesn't `pkg help` list it?
>>>>
>>>> artemis:~> pkg help | grep -i prime
>>>> artemis:~>
>>>
>>> Because it's not an actual command, it's an alias defined in
>>> /usr/local/etc/pkg.conf
>>
>> Then in man pkg. Or perhaps google is the best wasy to document this.
>
> Or you could add them as examples in pkg-alias(8). Pull requests gladly
> accepted.
This still, I think, leaves the information to the experts. I have used pkg
since its inception, FreeBSD since 4.5. And obviously in this area I am not
an expert. I have never thought to look past `man pkg` and `pkg help`. It
is my opinion that the useful stuff be available from there. In reading
`man pkg` I would never think to look at pkg-alias for something that is
logically a command. This evidenced in that I wrote a python script to do
this. happily they both get the same results.
_____
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