Pkg add over HTTP
From MyWiki
(Difference between revisions)
Admin (Talk | contribs)
(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…')
Newer edit →
(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…')
Newer edit →
Revision as of 20:33, 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