• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.3k 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 Dec 19, 2022, 8:28 PM

    @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
    • S
      stephenw10 Netgate Administrator
      last edited by stephenw10 Dec 19, 2022, 8:42 PM Dec 19, 2022, 8:40 PM

      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 Dec 19, 2022, 9:44 PM Reply Quote 1
      • B
        biggsy @stephenw10
        last edited by Dec 19, 2022, 9:44 PM

        @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
        • S
          stephenw10 Netgate Administrator
          last edited by Dec 19, 2022, 10:19 PM

          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 Dec 20, 2022, 4:29 AM

            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
            • S
              stephenw10 Netgate Administrator
              last edited by Dec 20, 2022, 1:44 PM

              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 Dec 20, 2022, 9:55 PM Dec 20, 2022, 9:51 PM

                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
                • S
                  stephenw10 Netgate Administrator
                  last edited by Dec 20, 2022, 10:22 PM

                  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 Dec 20, 2022, 10:53 PM

                    Yep, sorry, I misread your previous post.

                    Thanks again.

                    1 Reply Last reply Reply Quote 0
                    • B
                      biggsy
                      last edited by Dec 24, 2022, 11:44 PM

                      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
                      13 out of 13
                      • First post
                        13/13
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received