--- wikisrc/pkgsrc/how_to_upgrade_packages.mdwn 2019/05/10 07:34:12 1.3 +++ wikisrc/pkgsrc/how_to_upgrade_packages.mdwn 2019/05/10 09:02:04 1.4 @@ -6,6 +6,22 @@ There are various techniques for upgradi # 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 full-upgrade + + ## 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.