Pkg_add -r no longer working in 1.2.3
As the title says pkg_add -r is no longer working on my box as it's looking in the wrong place.
[1.2.3-RELEASE] [firstname.lastname@example.org]/root(3): pkg_add -r ttcp Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/ttcp.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/ttcp.tbz' by URL
The 7.2-release directory no longer exists!
This seems like an easy fix I just don't know what it is. As you can tell I'm pretty new to bsd.
I realise you can specify the correct path manually but it's a bit tedious.
FreeBSD's package support for 7.2-release has stopped, so you need to use packages-7-stable.
It's been well documented here:
As that is not officially supported, there isn't a documented way to make that easier.
Though if you check the pkg_add FreeBSD man page you'll find there is an environment variable you can set (perhaps in .profile/.tcshrc) to use an alternate URL.
I've add the following line to /root/.tcshrc
setenv PACKAGESITE "ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/"
Works great. ;D
Thanks again Jim.