Pkg add over HTTP

From MyWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with 'By default <tt>pkg_add</tt> uses FTP to fetch packages from remote server. I had the environment where I could only use HTTP to get out. To force <tt>pkg_add</tt> to use HTTP ddd…')
m (Protected "Pkg add over HTTP" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 

Current revision as of 20:34, 3 November 2009

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