Updating pfSense via the Command Line: A Step-by-Step Guide

Keeping your pfSense firewall up to date is crucial for security and performance. The GUI is the usual way to update, but sometimes it fails or can’t see the new version, and the command line gets you through. This guide shows how to update pfSense from the console menu or a root shell with pfSense-upgrade, and how to fix the errors that stop an upgrade from being offered.
It’s written against the current releases (pfSense CE 2.9.0 and pfSense Plus 26.07) and the Netgate docs, and the same commands have worked the same way since the 2.7 days.
About pfSense
pfSense is an open source firewall and router platform based on FreeBSD. It’s known for its robust security features and flexibility, and it’s widely used to protect networks of all sizes, from home labs to small businesses.
Which version is current (November 2026)
- pfSense CE 2.9.0, released 20 August 2026, is the newest Community Edition. 2.8.1 is still supported.
- pfSense Plus 26.07, released 13 August 2026, is the newest Plus release.
- pfSense 26.10 is coming. Netgate announced on 29 October 2026 that from 26.10 there is one edition of pfSense, free on any amd64 hardware with no registration, and that it will be released before the end of November. Netgate says upgrading from CE 2.9 to 26.10 is free and “happens in place, the same way you upgrade today”. Read the 26.10 release notes on release day before you jump, as the upgrade steps and prerequisites weren’t published at the time of writing.
Updating via the GUI
Normally, updating pfSense through the GUI is the easy option. Go to System > Update, check the Branch under Update Settings shows the version you want, click Confirm and let it run. The firewall reboots by itself when it’s done. If the GUI shows an error or says you’re up to date when you know you aren’t, the command line is a good alternative.
Why Updating May Be Needed via the Command Line
The command line helps when:
- the GUI can’t work out the remote version, or the update check hangs
- the web GUI isn’t reachable, but you have SSH or a console cable
- you want to watch the upgrade output as it happens
You can run the upgrade from the console menu (option 13, “Update from console”), which works on a monitor and keyboard, a serial console or over SSH. Or you can run pfSense-upgrade directly from a root shell (console menu option 8). If you haven’t set up SSH yet, see How to Enable and Secure SSH on pfSense.
Note: When Upgrading from 2.7.0 to 2.7.1
When upgrading from 2.7.0 to 2.7.1, many people saw these errors:
ERROR: It was not possible to determine pfSense remote version
ERROR: It was not possible to determine pfSense-base remote version
ERROR: It was not possible to determine pfSense-kernel-pfSense remote version
Your system is up to date
The same messages can still show up on newer versions. The usual cause is that pkg can’t verify the update server’s certificate, and Netgate’s fix is still the same: run certctl rehash so pkg can use the system certificates until the next reboot. If that doesn’t do it, work through the extra fixes further down.
Let’s Get Started
Before you start: back up
Download a copy of your configuration from Diagnostics > Backup & Restore before any upgrade. If something goes wrong, you can reinstall and restore it. Make sure there’s free disk space too, as low space is a common cause of failed upgrades.
Celeron J boxes and 2.9.0: Netgate’s 2.9.0 release notes warn about a kernel panic on some Intel Celeron J systems. If you have one, add this loader tunable from the shell before upgrading:
echo 'hint.acpi_spmc.0.disabled=1' >> /boot/loader.conf.local
If it already panics after the upgrade, at the loader prompt type set hint.acpi_spmc.0.disabled=1 and then boot.
Step 1: Resolve GUI Upgrade Errors
If the GUI shows errors like the ones above, log in to the console or SSH as admin, choose option 8 for a shell, and run:
certctl rehash
pfSense-upgrade -d -c
certctl rehash refreshes the trusted certificates, and pfSense-upgrade -d -c checks for an update (-c) with debug output (-d) so you can see what it’s doing.
Step 2: Verify Available Version
If the check works, it tells you a new version is available, for example:
2.9.0 version of pfSense is available
If it still says you’re up to date, check the branch in System > Update > Update Settings. Netgate staff have said there’s no direct command to change the update branch from the CLI, so set it in the GUI, then run the check again.
Step 3: Execute the Upgrade
Start the upgrade with:
pfSense-upgrade -d
Plain pfSense-upgrade works too; -d just shows more detail. Or use console menu option 13, which does the same thing. Answer y when it asks to continue, then let it download, install and reboot. Allow 10 to 15 minutes for the reboot, and don’t power it off part way.
Over a flaky SSH connection, run it inside screen so a dropped session doesn’t kill the upgrade:
pkg install screen
rehash
screen pfSense-upgrade
If you have IPv6 problems reaching the update servers, force IPv4 with pfSense-upgrade -4.
If the upgrade still isn’t offered
These come from Netgate’s Troubleshooting Upgrades page:
Reset the branch. In System > Update, set the branch to “Previous stable version”, wait for the page to refresh, then set it back to “Latest stable version”.
Force a metadata update and read the error:
pkg-static update -f“No address record” points to DNS, “No route to host” to the WAN or default gateway, and “An error occurred while fetching package” usually means running
certctl rehashfirst. For more detail, usepkg-static -d update.Reinstall the upgrade tools. If the update still isn’t offered:
pkg-static clean -ay; pkg-static install -fy pkg; pkg-static install -xfy pfSense-repo pfSense-upgrade“wrong version 2” repository errors need a newer
pkg:pkg-static bootstrap -fCheck the log. The last upgrade log is at
/conf/upgrade_log.latest.txt. Include it if you ask for help on the Netgate forum.
As a last resort, reinstall from fresh install media and use the installer’s “Recover config.xml” option to bring your configuration back.
Security notes
- Patch to 2.9.0 or 26.07. Netgate’s 2.9.0 release fixed advisories pfSense-SA-26_01 to 26_21, mostly web GUI issues including command execution through CR/LF injection in proxy and OpenVPN settings.
- Remote authentication (LDAP or RADIUS) users: pfSense-SA-26_22 (15 September 2026) is an authenticated command execution flaw in
xmlrpc.phpthat affects CE 2.9.0 and earlier and Plus 26.07 and earlier. The fix is in the next releases; until then, apply it from Recommended patches in the System Patches package, or don’t use remote authentication for logging in to the firewall itself. - SSH clients after 2.9.0: 2.9.0 ships OpenSSH 10.3p1, adds post-quantum key exchange and removes weaker algorithms. Update old SSH clients before you upgrade, or you may lock yourself out of the shell you’re using to upgrade. If an old client complains, see how to fix “no matching host key type found”.
Wrapping Up
Updating pfSense from the command line is a reliable fallback when the GUI can’t find or install an update. Back up first, run certctl rehash and pfSense-upgrade -d -c to check, then pfSense-upgrade (or console option 13) to upgrade. With 26.10 merging CE and Plus, keep an eye on Netgate’s release notes for the exact upgrade path from 2.9.
You May Also Be Interested In
- How to Enable and Secure SSH on pfSense
- The original Netgate forum thread on the 2.7.0 to 2.7.1 update errors
Sources
- Netgate docs: Perform the Upgrade
- Netgate docs: Troubleshooting Upgrades
- Netgate docs: 2.9.0 New Features and Changes
- Netgate docs: Versions of pfSense software and FreeBSD
- Netgate forum: Now Available: pfSense CE 2.9.0 Release
- Netgate blog: pfSense at 20 (26.10 announcement)
- Netgate forum: Installing new branch via console/command line
- Netgate: Security Advisories and pfSense-SA-26_22.webgui
Updated 18 November 2026: checked against pfSense CE 2.9.0 and Plus 26.07, added extra troubleshooting from the Netgate docs, security notes and the upcoming 26.10 merge.