Solved Install packages from the installer DVD

Here's a short version.
Have also added it as a summary at the top of post 25.
- - -

Run the newly installed OS, not the installer.
Insert the installer DVD, or USB stick thereof.
Log in as root, and run these commands.

Get the installer's /dev/ name (replace xxx below with it)
# gpart show

Mount the installer medium (MUST be on /dist/)
# mkdir /dist
# mount -t cd9660 /dev/xxx /dist

Upgrade pkg(7) to pkg(8)
# env REPOS_DIR=/dist/packages/repos/ pkg bootstrap -y

Alternative way to upgrade pkg(7) to pkg(8) (MUST use SINGLE quotes around the path)
# pkg add -y '/dist/packages/${ABI}/Latest/pkg.pkg'

Install a package from the DVD, as often as you want
# pkg -R /dist/packages/repos/ install pkgname

When you want to use the Internet for packages,
first upgrade/update everything, then use only the usual command:
# pkg install pkgname
After this, probably you should not use the DVD again, as package versions may not match.
 
HI, looking at the 15-Beta2 DVD that became downloadable an hour ago....

the /dist/packages/repos dir and
/dist/packages/repos/FreeBSD_install_cdrom.conf,
is not on the DVD ?

Is that intentional or not ?
is the repositorey config file somewere else on the dvd ?
 
Back
Top