Pkg add over HTTP

From MyWiki

Jump to: navigation, search

By default pkg_add uses FTP to fetch packages from remote server. I had the environment where I could only use HTTP to get out. To force pkg_add to use HTTP ddd the following lines to /root/.login:

# this one forces pkd_add to pull in packages via HTTP
setenv PACKAGESITE http://ftp.ie.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/

For bash/sh you can define the same variable in /root/.profile

Personal tools