Install packages from a FreeBSD installer DVD – with neither a DVD nor a network connection
Install packages from a FreeBSD installer DVD – with neither a DVD nor a network connection
Related: Write to a USB drive from the URL of a compressed disc image.
The example below assumes that your USB drive is at /dev/da0.
Run commands as the superuser.
mkdir /media/aninstallermount_cd9660 /dev/da0 /media/aninstallermkdir -p /usr/local/etc/pkg/reposee /usr/local/etc/pkg/repos/aninstaller.confpkg bootstrap --yes -r aninstallerpkg update --repository aninstallerpkg rquery -r aninstaller "%o%n" | sort | less
You'll get a list of available packages. Key q to quit the pager.
Then use pkg as you normally would, but limited to the aninstaller repo. For example:
pkg install -r aninstaller firefox
Content for the aninstaller.conf file:
aninstaller: {
url: "file:///media/aninstaller/packages/FreeBSD:14:amd64",
REPO_AUTOUPDATE: "false",
mirror_type: "none",
enabled: yes
}
Important: switch from yes, to no, after temporarily using the USB drive as a source for the repo.
Some manual pages: