version 1.3, 2019/05/10 07:34:12
|
version 1.9, 2020/09/09 15:50:14
|
Line 6 There are various techniques for upgradi
|
Line 6 There are various techniques for upgradi
|
|
|
# Methods using only binary packages |
# Methods using only binary packages |
|
|
|
|
|
## pkgin |
|
|
|
The recommended way to manage your system with binary packages is by using [pkgtools/pkgin](http://pkgsrc.se/pkgtools/pkgin). |
|
|
|
pkg_add pkgin |
|
|
|
Then configure your binary repository from which you want to install packages in /usr/pkg/etc/pkgin/repositories.conf. |
|
Run 'pkgin update' to get the list of available packages. You can then install packages using 'pkgin install firefox'. |
|
|
|
To update all installed packages, just run |
|
|
|
pkgin update |
|
pkgin upgrade |
|
|
|
|
## pkg_add -uu |
## pkg_add -uu |
|
|
pkg_add's -u option is used to update a package. Basically: it saves the package's current list of packages that depend on it (+REQUIRED_BY), installs the new package, and replaces that list of dependencies. |
pkg_add's -u option is used to update a package. Basically: it saves the package's current list of packages that depend on it (+REQUIRED_BY), installs the new package, and replaces that list of dependencies. |
|
|
By using the -uu (option used twice), it will attempt to update prerequisite packages also. |
By using the -uu (option used twice), it will attempt to update prerequisite packages also. |
|
|
See the manual page, [pkg_add(1)](http://netbsd.gw.com/cgi-bin/man-cgi?pkg_add+1+NetBSD-current), for details. |
See the manual page, [[!template id=man name="pkg_add" section="1"]], for details. |
|
|
|
|
## pkg_chk -b |
## pkg_chk -b |
|
|
Use "-b -P URL" where URL is where the binary packages are (e.g. [ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1/All/](ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1/All/)). |
Use "-b -P URL" where URL is where the binary packages are (e.g. <ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1/All/>). |
|
|
For example, to update any missing packages by using binary packages: |
For example, to update any missing packages by using binary packages: |
|
|
Line 174 After you've built new new packages, you
|
Line 190 After you've built new new packages, you
|
|
|
If you use PKGBASE instead of PKGNAME, you get the basename of the file. |
If you use PKGBASE instead of PKGNAME, you get the basename of the file. |
|
|
See [this BSDFreak Article](http://bsdfreak.org/modules/news/article.php?storyid=1) for a nice tutorial on how to set up and use pkg_comp. |
See [this BSDFreak Article](http://web.archive.org/web/20081002065622/http://www.bsdfreak.org/modules/news/article.php?storyid=1) for a nice tutorial on how to set up and use pkg_comp. |
|
|
## bulk build framework |
## bulk build framework |
|
|
Use the scripts in pkgsrc/mk/bulk/, e.g. as pointed out in [http://www.netbsd.org/Documentation/pkgsrc/binary.html#bulkbuild](http://www.netbsd.org/Documentation/pkgsrc/binary.html#bulkbuild). |
Use the scripts in pkgsrc/mk/bulk/, e.g. as pointed out in <http://www.netbsd.org/Documentation/pkgsrc/binary.html#bulkbuild>. |
|
|
To go easy on the existing pkgsrc installation, creating a sandbox (automated chroot environment) is highly recommended here: [http://www.netbsd.org/Documentation/pkgsrc/binary.html#setting-up-a-sandbox](http://www.netbsd.org/Documentation/pkgsrc/binary.html#setting-up-a-sandbox). |
To go easy on the existing pkgsrc installation, creating a sandbox (automated chroot environment) is highly recommended here: <http://www.netbsd.org/Documentation/pkgsrc/binary.html#setting-up-a-sandbox>. |
|
|
You can later mount the pkgsrc/packages/ via NFS wherever you want and install them like: |
You can later mount the pkgsrc/packages/ via NFS wherever you want and install them like: |
|
|
set PKG_PATH /mnt/packages/All && pkg_add <pkg> |
set PKG_PATH /mnt/packages/All && pkg_add <pkg> |
|
|
Or upload them on a www-site and pkg_add [http://www.site/packages/All/](http://www.site/packages/All/)<pkg> |
Or upload them on a www-site and pkg_add <http://www.site/packages/All/><pkg> |
|
|
## wip/distbb - distributed bulk builds |
## wip/distbb - distributed bulk builds |
|
|