Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Pkg_add -r no longer working in 1.2.3

    General pfSense Questions
    2
    3
    3573
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stephenw10
      stephenw10 Netgate Administrator last edited by

      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]                                                                 
      [root@fire.box]/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.
      Any suggestions?

      Steve

      1 Reply Last reply Reply Quote 0
      • jimp
        jimp Rebel Alliance Developer Netgate last edited by

        FreeBSD's package support for 7.2-release has stopped, so you need to use packages-7-stable.

        It's been well documented here:
        http://doc.pfsense.org/index.php/Installing_FreeBSD_Packages

        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.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • stephenw10
          stephenw10 Netgate Administrator last edited by

          Aha! Sorted!
          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post