OpenBSD 6 pkg_add Initialization
Hello OpenBSD User! This Tip shows you Getting-Started Installing New OpenBSD 6 Packages with the OpenBSD 6 pkg_add First, Configuration.
Especially relevant: from OpenBSD 6.1 there has been a Semplification in the pkg_add First, Configutation Setup.
-
Set OpenBSD Packages Repository URL
-
For 6.0 and below:
vi /etc/pkg.conf
Append:
installpath = http://ftp.eu.openbsd.org/pub/OpenBSD/`uname -r`/packages/`arch -s`/
Eg for 5.9 64-bit:
installpath = http://ftp.eu.openbsd.org/pub/OpenBSD/5.9/packages/amd64/
-
Instead, for 6.1+:
vi /etc/installurl
And Add:
http://ftp.eu.openbsd.org/pub/OpenBSD
Type ‘i’ to Start editing in vi
Press ‘esc’ to Stop editing
And finally ‘:wq’ to Write changes and Quit! -
-
Then to Install Bash Shell.
pkg_add -v bash