Pkg_add -r no longer working in 1.2.3

  • Netgate Administrator

    As the title says pkg_add -r is no longer working on my box as it's looking in the wrong place.

    []/root(3): pkg_add -r ttcp
    Error: FTP Unable to get File unavailable (e.g., file not found, no access)
    pkg_add: unable to fetch '' 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.
    Any suggestions?


  • Rebel Alliance Developer Netgate

    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.

  • Netgate Administrator

    Aha! Sorted!
    I've add the following line to /root/.tcshrc

    setenv PACKAGESITE ""

    Works great.  ;D

    Thanks again Jim.