pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Why do I want to "get pkgsrc"?



On 3/1/23 20:21, Qingyao Sun wrote:
Dear List,

While reading the pkgsrc user's guide, I find the chapters structured in an unnatural way. In particular, I wanted to install few packages like bash, tmux, and vim with pkgsrc, which I presume is the most common use case of a package manager. Unfamiliar with pkgsrc, I started reading the guide chapter-by-chapter. In chapter 3 [1], I was instructed to “get pkgsrc” by downloading a large tarball or checkout a huge CVS repository which contains the source of all packages. Not only is this step very time-consuming and took a lot of disk space, it is also completely unnecessary: I can simply set PKG_PATH and install individual packages with pkg_add or pkgin, which is not explained until chapter 5.

 From my perspective, chapter 5 should be in the position of chapter 3, as this is what a typical user would care most. On the other hand, I don’t see the purpose of having the source of very single package in /usr/pkgsrc: I wonder why do I, as a user, ever want to do that instead of downloading packages on demand from http://ftp.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$(uname -m)/$(uname -r|cut -f '1 2' -d.)/All?


Bests,
Qingyao


[1]: https://www.netbsd.org/docs/pkgsrc/getting.html

Thanks for the feedback, Qingyao. Note that pkgsrc is a cross-platform package manager, not just for NetBSD. It works on virtually any POSIX platform, and there are no binary packages for most of them. As far as I know, packages are available only for NetBSD, Illumos, CentOS 6 & 7, and macOS:

http://pkgsrc.joyent.com/

Also, some packages cannot be redistributed in binary form due to licensing, and must be installed from source.

The guide is written in a way that should work for any platform. Perhaps, though, it could introduce binary packages earlier.

Lastly, I developed a script called auto-pkgsrc-setup to automate the bootstrap process and perform some commonly useful configuration. This may serve your purpose.

http://netbsd.org/~bacon/




Home | Main Index | Thread Index | Old Index