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

    Is there a way to set the firmware version and upgrade pfSense from the console?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    7 Posts 4 Posters 1.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.
    • T
      T145
      last edited by

      Doing it through the "Update" UI is clunky and has caused the pkg command to break a couple times when simply selecting different firmware versions to check from the selection dropdown. If there's a way to handle this completely through console commands it would be a life-saver.

      1 Reply Last reply Reply Quote 0
      • jimpJ jimp moved this topic from General pfSense Questions on
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        There isn't a console-based method of selecting the upgrade branch at the moment, but you can run the upgrade check (pfSense-upgrade -c) and the actual upgrade (pfSense-upgrade) from the console.

        https://docs.netgate.com/pfsense/en/latest/install/upgrade-guide-update.html#upgrading-using-the-console

        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!

        T 1 Reply Last reply Reply Quote 0
        • T
          T145 @jimp
          last edited by

          @jimp I have pfSense-upgrade -d set on a CRON task, but thanks for the tip! Is there a way to downgrade at all w/out installing from a flash drive?

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

            Running pfSense-upgrade from a cron job is a terrible idea.

            There is no way to downgrade.

            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!

            T 1 Reply Last reply Reply Quote 2
            • R
              rcoleman-netgate Netgate @T145
              last edited by

              @t145 said in Is there a way to set the firmware version and upgrade pfSense from the console?:

              Is there a way to downgrade at all w/out installing from a flash drive?

              Presently it's all a live filesystem, and your config file post-upgrade is incompatible with older releases.

              This might be functional in the future with ZFS but as I understand right now that's not possible.

              Ryan
              Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
              Requesting firmware for your Netgate device? https://go.netgate.com
              Switching: Mikrotik, Netgear, Extreme
              Wireless: Aruba, Ubiquiti

              1 Reply Last reply Reply Quote 1
              • T
                T145 @jimp
                last edited by

                @jimp said in Is there a way to set the firmware version and upgrade pfSense from the console?:

                Running pfSense-upgrade from a cron job is a terrible idea.

                There is no way to downgrade.

                Noted; I'll remove the entry xd

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

                  You can roll-back to an earlier BE snapshots if you re using ZFS. I have tested that between 23.01 and 22.05.

                  Steve

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