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

    [Solved] Install FreeBSD package

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 2 Posters 2.6k Views
    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.
    • B
      biggsy @stephenw10
      last edited by

      @stephenw10 said :

      Any particular page?

      Thanks, Steve. Sorry, it was getting late. This is what I was following.

      I do know about the recommendation not to install FreeBSD packages. OpenBGPd has no dependencies - something I checked when I first installed it a few years ago.

      I don't use OpenBGPd (or anything else) for "proper" BGP.
      In my case, it's used to directly update a pfSense alias containing fail2ban'd IPs sent from my mail server. It's instantaneous and very low overhead.

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

        Ah, that's fine then. You've obviously done the work in advance. ๐Ÿ‘

        I mention the issues here because unfortunately there are many users who do not do the work and reap the consequences! ๐Ÿ˜‰

        Yes, we could update that page to use a current example with the alternative file suffix.

        Steve

        B 1 Reply Last reply Reply Quote 1
        • B
          biggsy @stephenw10
          last edited by

          @stephenw10 said:

          Yes, we could update that page to use a current example with the alternative file suffix.

          Curiously, I couldn't find any FreeBSD documentation or discussion about that change of file extension. Still wondering whether I might have got something wrong. OpenBGPd is installed though.

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

            If you run pkg -d update you'll see it tries both in current versions. I have no insight into the change though.

            1 Reply Last reply Reply Quote 0
            • B
              biggsy
              last edited by

              So, I set /usr/local/etc/pkg/repos/pfSense.conf back to "no" and deleted the OpenBGPd pkg. Thanks for that tip, Steve. Although, I hadn't made a note of doing this originally but, after a few failed attempts, I went back to the pfSense documentation.

              Tried this again after making the change:

              pkg add http://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/All/openbgpd-5.2.20121209_4,1.txz
              

              and the result was:

              pkg: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/All/openbgpd-5.2.20121209_4,1.txz: Not Found
              

              Changed .txz to .pkg and it installed OK.

              Might post a question on the FreeBSD forum.

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

                If you specify the exact filename, as you must when using a different repo, then it will only use that. If you do something like pkg install nano the pkg system will try both file types. But only against the configured repo.

                1 Reply Last reply Reply Quote 0
                • B
                  biggsy
                  last edited by biggsy

                  Hi Steve,

                  Yes, in fact I tried the following variations:

                  pkg add http://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/All/openbgpd
                  pkg add http://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/All/openbgpd.txz
                  pkg add http://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/All/openbgpd.pkg
                  

                  All returned "Not Found".

                  Edit: Same with "pkg install . . ."

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

                    Yup you need the precise file name including the build number to use pkg add.

                    1 Reply Last reply Reply Quote 0
                    • B
                      biggsy
                      last edited by

                      Yep, sorry, I misread your previous post.

                      Thanks again.

                      1 Reply Last reply Reply Quote 0
                      • B
                        biggsy
                        last edited by

                        Just to follow up on this, I found this post from Feb '22 on the FreeBSD forum:

                        "The extension for FreeBSD packages changed from .txz to .pkg recently. The static pkg tool in base still expects the old name.t"

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.