Solved pkg_add has broken link

For testing reason I have installed FreeBSD 7 in which the pkg_add points to broken link. I tried to change that using:

Code:
export PACKAGEROOT=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/7.0-RELEASE/packages/Latest

However I get errors like:

Code:
Error: FTP Unable to get ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/7.0-RELEASE/packages/Latest/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/wget.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/7.0-RELEASE/packages/Latest/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/wget.tbz' by URL

I think this is because it is actually a http link and not a ftp link?
 
Solved; had incorrect syntax:

Code:
 pkg_add -r http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/7.0-RELEASE/packages/Latest/wget.tbz
 
Note that FreeBSD 7.0 is End-of-Life since April 2009 and really shouldn't be used anymore. Also note that the old package tools and packages have been deprecated since 2013. So you're really on your own here. I strongly urge you to test with a supported version.

Topics about unsupported FreeBSD versions
 
Back
Top