OpenBSD: HowTO Install Sets After Installation

in Categories last updated November 28, 2012

How do I install a package set after install under OpenBSD operating systems? I forgot to add a file set comp52.tgz package. How do I install the same after installing the operating system?

OpenBSD recommends two methods as follows to install sets after the initial install:

Method # 1: Upgrade

  1. Reboot your OpenBSD.
  2. Inset your install media / CD-ROM (you can also boot using PXE network boot option)
  3. Choose Upgrade rather than Install.
  4. 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.

Method # 2: Use tar command

Use wget or ftp client to download a file set called comp52.tgz:
$ cd /tmp
$ wget

Type the following tar command:
# cd /
# pwd
# tar xzvphf /tmp/comp52.tgz

Sample outputs:


The comp52.tgz 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 command in order to restore the file permissions properly.


Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):