Packages and pkgsrc Makronix has two kinds of software: what NetBSD's build puts in the base system, and what pkgsrc installs under /usr/pkg. The desktop, Firefox, Thunderbird and the games are pkgsrc packages. The package tools are NetBSD's; the packages on the medium are built for Makronix or taken from the NetBSD project. The package tools pkg_add1 installs, pkg_delete1 removes, and pkg_info1 asks questions. The package database is /usr/pkg/pkgdb. $ pkg_info | less $ pkg_info -L firefox | less $ pkg_info -D firefox $ pkg_info -W /usr/pkg/bin/firefox lists the files of a package, prints the message that came with it (where its documentation is, which service to enable), and answers which package owns a file. Installing a package /etc/pkg_install.conf names the repository in PKG_PATH. The installer writes it when the machine is installed; it points at the package repository on the installation medium or at the NetBSD project's repository for the release the packages were built for. With the path set, a package is one command: # pkg_add firefox # pkg_add -u firefox # pkg_delete firefox pkg_add -u updates an installed package to the newest version the repository has. Without an argument it updates everything that has a newer version: # pkg_add -uu # pkg_admin rebuild An update can replace a library that another program needs. Read the messages pkg_add prints, and keep the previous package until the new one has started. The makronix set and the package database The packages that Makronix itself ships are in the makronix set, which the installer unpacks as part of the system. They are not registered in the package database: they change with a Makronix release, and pkg_add -u does not touch them. A program that is in the base set or in the makronix set is therefore updated by installing a new Makronix release, not by a package update. The programs that were installed with pkg_add (Firefox, Thunderbird, QEMU, the games) are registered and do update. pkg_info shows the registered packages. If it does not list MCDE, that is not a defect: MCDE came with the release. Building from source The source set carries pkgsrc in /usr/pkgsrc. A package is built in its own directory with the NetBSD make: # cd /usr/pkgsrc/www/firefox # make install clean The build needs the distfiles for the package and its dependencies. The source set carries the distfiles of the packages Makronix ships, not the whole pkgsrc archive; a package outside that set fetches what it needs, which requires a network connection. The authoritative description of pkgsrc is The pkgsrc Guide, installed with the tree and available on the NetBSD project's web site. A build on the installed machine writes into /usr/pkg and its work directories under /usr/pkgsrc. It needs free space — a browser can take several gigabytes while it builds — and it is the wrong thing to do on a machine with a nearly full disk. Security updates pkg_admin1 can compare the installed packages with the published vulnerability list: # pkg_admin audit # pkg_admin fetch-pkg-vulnerabilities Makronix enables fetch_pkg_vulnerabilities=YES in /etc/daily.conf, so the list is fetched daily and security8 reports what it finds to root's mail. The report is only as good as the list; read it, and update the packages it names.