[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg_install in base system again
Does this mean that non-NetBSD systems should supply packages for ftp.netbsd.org (or whatever) so that the tool works the same on any pkgsrc-using platform?
On Sun, Nov 6, 2011 at 7:35 AM, Aleksey Cheusov <cheusov%tut.by@localhost>
Some time ago Joerg proposed to remove pkg_install from base system and
switch to using pkg_install from pkgsrc just like all other systems do.
I agree with him and don't want to reproduce his arguments but I would
like to raise this question once again.
AFAIR the only argument against removal was that NetBSD is a number one
system for pkgsrc and it is impractical to bootstrap pkgsrc for end
users. I've just imported othersrc/usr/sbin/pkg_setup script that I
think solves this problem. The script downloads pkg_install package from
the NetBSD binary repository, installs it and initializes pkgdb.
Without arguments pkg_setup downloads the package from
If pkg_setup were a part of the base system instead of pkg_install, the
users would be able to initialize pkgsrc easily by simply running
'pkg_setup'. As easy as that. Then bmake, bootstrap-mk-files and
everything else can be installed with a help of pkg_add as usual. We can
also provide a meta package that includes everything required for
source-based updates and installation.
For testing purposes you can run 'pkg_setup -- -P /tmp',
this command will install pkg_install under /tmp.
Additional application for pkg_setup could be simplifying pkgsrc
installation for non-NetBSD systems for those who prefer binary
updates. Now users need to download tens of megabytes of pkgsrc tree and
run bootstrap. In my view if someone uploads his/her binary packages and
pkg_summary(5), this is just enough others can use this repository by
running pkg_setup provided that pkg_setup has been uploaded as well. If
our bulk build tools uploaded modified pkg_setup (having correct default
url to the repository) as well as pkg_summary and binaries this would
make using such repositories much easier.
Best regards, Aleksey Cheusov.
Main Index |
Thread Index |