|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
export PKG_PATH
I logged in as root and wished to add the following line:
Code:
export PKG_PATH=http://my.preferred.mirror/pub/OpenBSD/`uname -a`/packages/`uname -m`/ Which .profile file should I use? |
|
|||
You should use pkg.conf(5).
|
|
|||
Unix lore tends to promote minimal customization of the root account in order to promote more actions in non-root accounts. Judging whether adding a single export statement constitutes "heavy" customization is a personal choice.
However, an alternative would be to add your export statement to your non-root ~/.profile, & execute pkg_add(1) through either sudo(1) (in OpenBSD versions prior to 5.8...), or doas(1) (introduced in OpenBSD 5.8...). |
|
|||
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
can't setup PKG_PATH after install of 5.5 | spermwhale_warrior | OpenBSD Packages and Ports | 10 | 26th August 2014 09:29 PM |
What is the PKG_PATH for NetBSD 6.0.1 Binary Installs? | haziz | NetBSD General | 9 | 19th March 2013 01:12 AM |
"No package available in the PKG_PATH" error | Nk2Network | OpenBSD Packages and Ports | 19 | 12th January 2009 09:22 PM |