|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
||||
If you install filesets from the network, the installer will create a pkg.conf(5) file for you. If you install from media, the installer will not create the file.
The file will be used if the $PKG_PATH environment variable is not set, so that you can use the variable to override the configuration file. There is an /etc/examples/pkg.conf file available, also. |
|
||||
No, there is no pkg.conf file created. I am using an installf59.fs file, burned to USB. It's provided by nycbug.org, and if I choose defaults, will use their mirrors.
Again, unimportant question, it is just that I had expected an /etc/pkg.conf but there wasn't one. Last edited by scottro; 8th July 2016 at 02:47 PM. |
|
||||
Let me restate, since you are using "install59.fs" from an official mirror.
OpenBSD is installed using the RAMDISK kernel (bsd.rd), which may be booted from a variety of media: diskette, optical drive, disk drive, or network. The options available depend upon the architecture. In this case, the media you selected and put on USB is a disk-drive image containing both the bootable RAMDISK kernel, and all installable kernels and filesets. The only difference between the install59.fs image and the miniroot59.fs image is that the latter does not have any installable kernels or filesets. No matter what media type you chose to use, or which variant you boot, the same bsd.rd kernel and the same script is used. During install, you will be asked where the kernels and filesets for installation are located. They may be on local media, or they may be at a network location.
|
|
||||
Here are two excerpts from /usr/src/distrib/miniroot/install.sub for OpenBSD 5.9:
Code:
# Bake a package path only if we installed from a mirror. PACKAGE_PATH= if [[ -n $_mirror ]]; then PACKAGE_PATH=$(print -r -- "$_url_base" | sed -E "/\/(snapshots|[0-9]\.[0-9])\/($ARCH)\/*$/!d s!!/%c/packages/%a/!;q") fi . . . # Create or update pkg.conf with the new package path, if any. if [[ -n $PACKAGE_PATH ]]; then grep -v '^[ ]*installpath[ ]*=' /mnt/etc/pkg.conf 2>/dev/null >/tmp/pkgconf print -r -- "installpath = $PACKAGE_PATH" >>/tmp/pkgconf cp /tmp/pkgconf /mnt/etc/pkg.conf fi Last edited by jggimi; 8th July 2016 at 05:07 PM. Reason: clarity |
|
|||
When I install, I normally set it manually, by echoing it to my root .profile, & everything works.
Should I not do so?
__________________
Linux since 1999, & also a BSD user. |
|
|||
Thanks for confirming.
__________________
Linux since 1999, & also a BSD user. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PKG_PATH not changing | Roydd85 | OpenBSD Packages and Ports | 12 | 7th April 2016 01:30 AM |
export PKG_PATH | betweendayandnight | OpenBSD General | 4 | 9th August 2015 12:07 PM |
can't setup PKG_PATH after install of 5.5 | spermwhale_warrior | OpenBSD Packages and Ports | 10 | 26th August 2014 09:29 PM |
DMA with user accounts stored in a database | Jtf | General software and network | 2 | 22nd July 2014 02:38 AM |
pf tables how long values stored | ijk | FreeBSD Security | 3 | 12th August 2008 11:45 AM |