Old version of pkg install

Try reading its man page.

Code:
       The  environment	 variable  PACKAGEROOT specifies an alternate location
       for pkg_add to fetch from.  The fetch URL is built using	this  environ-
       ment  variable and the automatic	directory logic	that pkg_add uses when
       the  -r	 option	  is   invoked.	   An	example	  setting   would   be
       "ftp://ftp3.FreeBSD.org".

       The  environment	 variable  PACKAGESITE specifies an alternate location
       for pkg_add to fetch from.  This	variable subverts the automatic	direc-
       tory logic that pkg_add uses when the -r	option is  invoked.   Thus  it
       should be a complete URL	to the remote package file(s).
 
Should I expect something like this to work?

sh:
PACKAGESITE=http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/9.0-RELEASE/packages/
echo $PACKAGESITE
pkg_add misc/mc-4.7.5.5_1.tbz
 
Should I expect something like this to work?

sh:
PACKAGESITE=http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/9.0-RELEASE/packages/
echo $PACKAGESITE
pkg_add misc/mc-4.7.5.5_1.tbz
More like # PACKAGESITE=http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/9.0-RELEASE/packages/All/ pkg_add -r mc, IIRC.
-r is for fetching (remotely) from the ftp.
You provide the full path, including the .tbz extension only when installing a package you already have locally.

Of course you can set PACKAGESITE once and for all in /.cshrc with:
Code:
setenv PACKAGESITE http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/9.0-RELEASE/packages/All/
 
Back
Top