FreeBSD installation without inet connections

Marc78

New Member


Messages: 1

#1
Hi everyone,

I wondered about the default installation of FreeBSD 11.0(-release-p1).
It was impossible for me to install pkg by default.
Because of the msg: ...Error fetching http://... but that's no wonder because there is no inet connection.
My source is a DVD. (mounting etc. is no problem)
I was not able to install pkg without modifying pkg.conf or/and FreeBSD.conf.


My question is: Can I install pkg from my DVD or to change URL to a file location by default? (bsdconfig,...)


greetings Marc
 

linux->bsd

Active Member

Thanks: 36
Messages: 111

#3
The DVD contains a static version of pkg() located at /usr/sbin/pkg. You can use it to install local packages: /usr/sbin/pkg add vim.txz.

Code:
# mdconfig -t vnode -a -f FreeBSD-11.1-RELEASE-amd64-dvd1.iso -u 3
# mount_cd9660 /dev/md3 /media/
# find /media/ -type f -name pkg\*
/media/packages/FreeBSD:11:amd64/All/pkgconf-1.3.7,1.txz
/media/packages/FreeBSD:11:amd64/All/pkg-1.10.1.txz
/media/usr/sbin/pkg
/media/usr/share/keys/pkg/trusted/pkg.freebsd.org.2013102301
/media/usr/share/man/man7/pkg.7.gz
#
So it looks like you can install pkg-1.10.1.txz using /media/usr/sbin/pkg.
 
Top