Pkg add over HTTP

From MyWiki

Revision as of 20:34, 3 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
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