Date: Mon, 4 Jan 2021 11:33:46 -0500 (EST) From: Doug Denault <doug@safeport.com> To: Matthew Seaman <matthew@FreeBSD.org> Cc: freebsd-questions@FreeBSD.org Subject: Re: pkg prime-origins Message-ID: <alpine.BSF.2.00.2101041131190.48249@bucksport.safeport.com> In-Reply-To: <6df60adc-e541-3d7f-0534-d1df28d36030@FreeBSD.org> References: <b17651a7-e6d3-7571-7027-d122d5755ac@fledge.watson.org> <20210104023347.GA36180@admin.sibptus.ru> <66c6e016-1bf-f0ff-7066-50184c238dbd@fledge.watson.org> <6df60adc-e541-3d7f-0534-d1df28d36030@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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.2101041131190.48249>