OpenBSD – How to install sets after installation
The OpenBSD project recommends two methods as follows to install sets after the initial install.
Method # 1: Upgrade
- Reboot your OpenBSD system using the reboot command.
- Inset your install media / CD-ROM (you can also boot using PXE network boot option)
- Choose Upgrade rather than Install.
- When you get to the lists of file sets to install, choose the sets you neglected to install first time around, select your source, and let it install them for you.
The official docs recommend this following way too:
If you chose to skip some file sets at install time, you might realize later that you really do need them after all. Simply boot bsd.rd from your root file system and choose (U)pgrade. When you get to the list of file sets, select the ones you need. The bsd.rd ramdisk kernel is a live OpenBSD environment that runs entirely in memory. It contains the install script and a small number of utilities needed to perform a complete installation. These utilities can also be useful for disaster recovery. The installation media automatically boots into bsd.rd and starts the install script for you.
You will boot the kernel named bsd.rd from the a partition of the first recognized hard disk and select U to upgrade:
Provide needed information and you should arrive the following screen to install missing sets for OpenBSD:
After sometimes you should get the following message on screen:
CONGRATULATIONS! Your OpenBSD upgrade has been successfully completed!
To boot the new system, enter ‘reboot’ at the command prompt.
Method # 2: Use tar command
Use wget or ftp client to download a file set called comp63.tgz:
$ cd /tmp
## [ set these are per your needs ] ##
## [ use wget from ports ] ##
$ wget http://mirror.switch.ch/ftp/pub/OpenBSD/$VER/$ARCH/$PKG
## [ OR use ftp client which installed by default on an OpenBSD ] ##
$ ftp https://cloudflare.cdn.openbsd.org/pub/OpenBSD/$VER/$ARCH/$PKG
Type the following tar command to extract files:
# cd /
# tar xzvphf /tmp/$PKG
./usr/lib/libasn1.a ./usr/lib/libasn1_p.a ./usr/lib/libasn1_pic.a ./usr/lib/libc.a .... ... ...
The comp63.tgz ($PKG) file set is simply compressed tar file, and you can expand them manually from the root of the filesystem using the tar command. Do NOT forget the p option in the above tar command in order to restore the file permissions properly.
You just learned how to install sets after installation on an OpenBSD desktop or server using various methods. I suggest you read the following documents:
- OpenBSD documentation.
- man pages – tar, wget, and ftp
|Category||List of Unix and Linux commands|
|Firewall||CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04|
|Network Utilities||dig • host • ip • nmap|
|OpenVPN||CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04|
|Package Manager||apk • apt|
|Processes Management||bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time|
|Searching||grep • whereis • which|
|User Information||groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w|
|WireGuard VPN||CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04|