RouterOS Upgrade Procedures
RouterOS Upgrade Procedures
Section titled “RouterOS Upgrade Procedures”Upgrading RouterOS is a routine maintenance task, but it requires a methodical approach to avoid service disruption. This guide covers the complete upgrade workflow: pre-upgrade backups, checking for updates, applying packages, upgrading RouterBOARD firmware, and recovering from failed upgrades.
Overview
Section titled “Overview”RouterOS upgrades involve two distinct components:
- RouterOS packages — the operating system and feature packages installed on the router
- RouterBOARD firmware — the bootloader stored in hardware flash (upgraded separately)
Both may need updating after a RouterOS release, but they are applied independently and in a specific order.
Before You Upgrade
Section titled “Before You Upgrade”Take a Backup
Section titled “Take a Backup”Always back up before any upgrade. Use both methods for maximum flexibility:
# Binary backup (for same-version restore)/system backup save name=pre_upgrade
# Text export (portable, version-independent)/export file=pre_upgrade_exportThe binary backup restores the complete configuration but is version-sensitive. The text export is a script that can be manually reviewed and applied across versions.
Check Available Storage
Section titled “Check Available Storage”Verify sufficient free space before downloading packages:
/system resource printLook at the free-hdd-space field. RouterOS v7 packages require approximately 20% more space than equivalent v6 packages. Remove unused packages or temporary files if storage is tight:
/file print/file remove [find name~"tmp"]Verify Upgrade Path
Section titled “Verify Upgrade Path”For major version upgrades (e.g., v6 to v7), ensure your hardware and current RouterOS version support the target. Devices running RouterOS v6.x below v6.47 must first upgrade to v6.47+ before migrating to v7. See RouterOS v6 to v7 Migration for migration-specific guidance.
Checking for Updates
Section titled “Checking for Updates”/system package update check-for-updatesAfter the check completes, view the result:
/system package update printKey fields in the output:
| Field | Description |
|---|---|
channel | Update channel (stable, long-term, testing, development) |
installed-version | Currently running RouterOS version |
latest-version | Newest available version on the selected channel |
status | Whether a new version is available |
Winbox / WebFig
Section titled “Winbox / WebFig”Navigate to System → Packages → Check For Updates. Select the desired Channel from the dropdown, then click Check For Updates.
Update Channels
Section titled “Update Channels”| Channel | Description |
|---|---|
stable | Recommended for production; thoroughly tested releases |
long-term | Extended support release; fewer updates, maximum stability |
testing | Release candidates; not recommended for production |
development | Nightly builds; for development and testing only |
Set the channel before checking:
/system package update set channel=stableApplying Updates
Section titled “Applying Updates”Download and Install (Recommended)
Section titled “Download and Install (Recommended)”This is the standard upgrade method. It downloads the new packages and reboots to apply them:
/system package update installThe router reboots automatically after the download completes. This is equivalent to clicking Download&Install in Winbox.
Download Now, Install Later
Section titled “Download Now, Install Later”Download packages without immediately rebooting, then reboot during a maintenance window:
/system package update downloadAfter downloading, the router installs the new version on the next reboot:
/system rebootVerify Installed Version
Section titled “Verify Installed Version”Confirm the installed packages and their versions:
/system package printWinbox / WebFig
Section titled “Winbox / WebFig”- Go to System → Packages → Check For Updates
- Select the Channel
- Click Download&Install for immediate upgrade, or Download to install on next reboot
RouterBOARD Firmware Upgrade
Section titled “RouterBOARD Firmware Upgrade”RouterBOARD firmware is the bootloader stored in device hardware — separate from RouterOS packages. After upgrading RouterOS, check whether a matching firmware update is available.
Check Firmware Status
Section titled “Check Firmware Status”/system routerboard printCompare current-firmware and upgrade-firmware. If they differ, a firmware upgrade is available.
Upgrade Sequence
Section titled “Upgrade Sequence”Always upgrade RouterOS first, reboot, then upgrade firmware. This order ensures the new bootloader is compatible with the new RouterOS version:
# Step 1: Upgrade RouterOS packages and reboot (as above)/system package update install# router reboots automatically
# Step 2: After RouterOS reboot, upgrade RouterBOARD firmware/system routerboard print/system routerboard upgrade
# Step 3: Reboot to activate new firmware/system reboot
# Step 4: Confirm firmware is current/system routerboard print# current-firmware should now match upgrade-firmwareFirmware Upgrade Risks
Section titled “Firmware Upgrade Risks”RouterBOARD firmware writes directly to hardware flash. Power failure during a firmware write can leave the device unbootable. Before upgrading firmware:
- Use a UPS or ensure stable power
- Prefer local (console) access over remote-only sessions
- Schedule during a maintenance window
- Have Netinstall available as a recovery option
Rollback and Downgrade
Section titled “Rollback and Downgrade”Package Downgrade (Router Still Boots)
Section titled “Package Downgrade (Router Still Boots)”If the router still boots after an upgrade but you need to revert, RouterOS supports downgrading by uploading older package files:
- Download the target
.npkpackage files for your device architecture from mikrotik.com/download - Upload them to the router (via Winbox Files or
/tool fetch) - Initiate the downgrade:
/system package print/system package downgrade/system rebootRouterOS selects the older installed package set on reboot.
Restore from Backup
Section titled “Restore from Backup”To restore configuration after a failed upgrade (if the router is accessible):
# Restore binary backup (same version required)/system backup load name=pre_upgrade password=""
# Or import text export (works across versions)/import file=pre_upgrade_export.rscBinary backups are version-sensitive — restore them on the same RouterOS version. Text exports are more portable and can be imported after reinstall or version change.
Failed Upgrade Recovery
Section titled “Failed Upgrade Recovery”If the Router Won’t Boot
Section titled “If the Router Won’t Boot”When a router fails to boot after upgrade, use Netinstall to reinstall RouterOS:
-
Download Netinstall and the RouterOS
.npkpackage for your device from mikrotik.com/download -
If the router is still partially accessible, prepare it for Etherboot:
/system routerboard settings set boot-device=try-ethernet-once-then-nand/system reboot -
Connect the router directly to your computer with an Ethernet cable
-
Run Netinstall, select the device when it appears, select the
.npkpackage, and click Install
See Netinstall for the complete recovery procedure including network setup, LED behavior, and troubleshooting.
RouterBOOT Fallback
Section titled “RouterBOOT Fallback”RouterBOARD devices have main and backup booters. If the main booter is damaged, the backup booter may allow the device to boot into a recovery state. Consult mikrotik.com/download for device-specific RouterBOOT documentation.
Common Causes of Upgrade Failures
Section titled “Common Causes of Upgrade Failures”| Cause | Prevention |
|---|---|
| Wrong package architecture | Verify device architecture with /system resource print before downloading |
| Insufficient storage | Check free-hdd-space before downloading; remove unneeded files |
| Power interruption during firmware flash | Use UPS; schedule during stable maintenance window |
| Incomplete package set | Download the full package set for your feature requirements |
Fleet Upgrades
Section titled “Fleet Upgrades”For managing upgrades across multiple routers, RouterOS supports fetching updates from a central router acting as a local package mirror:
# On each router, configure the local package server/system package local-update update-package-source set address=10.0.0.1 user=admin password=secret
# Install from the local server/system package local-update installThis reduces internet bandwidth consumption for large deployments and allows controlled rollout of updates across the fleet.
Summary Checklist
Section titled “Summary Checklist”Before upgrading:
- Back up configuration (binary + text export)
- Verify available storage
- Confirm upgrade path is supported
- Set update channel to
stable(or your policy channel)
Apply the upgrade:
- Run
check-for-updatesand review versions - Run
install(ordownload+ manual reboot)
After RouterOS reboot:
- Verify
installed-versionwith/system package print - Run
/system routerboard printto check firmware - Run
/system routerboard upgradeifcurrent-firmware≠upgrade-firmware - Reboot to activate new firmware
- Confirm firmware with
/system routerboard print