On Sat, Aug 15, 2020 at 04:12:40PM +0200, Leonardo Taccari wrote: > Hello Nia, > > Nia Alarie writes: > > [...] > > Log Message: > > afterboot.8: Explain how to install pkgin on a fresh system > > [...] > > +.Pp > > +To install pkgin, if it was not done by the installer: > > +.Bd -literal -offset indent > > +.Ic export > > PKG_PATH=https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/9.0/amd64/All > > +.Ic pkg_add pkgin > > [...] > > Can this use cdn.NetBSD.org and made a bit more general instead of > hardcoding version/port please? > > Instead of 9.0/amd64 probably something like: > > $(uname -r | tr -cd '[0-9.]')/$(sysctl -n hw.machine_arch) > > (the `tr -cd '[0-9.]'' should get rid of possible _STABLE, _BETA and > similar... probably there are better way to do it, in that case please > adjust it or let me know!) > > > Thanks!
Yeah. I was hesistant to do it this way because hw.machine_arch didn't occur to me (uname gives the wrong thing for package sets on arm, etc)