This is an old revision of the document!
Ubiquiti - CLI - Upgrade Controller
1. Navigate to the Ubiquiti Downloads page to obtain the UniFi Controller firmware download link.
2. The latest UniFi Controller releases are listed in the Software section.
3. Expand the UniFi Network Controller for Debian/Ubuntu Linux and UniFi Cloud Key option and select download.
4. Accept the EULA and copy the firmware download URL. An example URL is:
https://dl.ui.com/unifi/x.xx.xx_version/unifi_sysvinit_all.deb
5. Open a SSH session using your favorite SSH/Telnet client program.
6. Navigate to the /tmp directory:
cd /tmp
7. Verify if there are any previous installation files present in the directory and delete them if applicable:
ls -l
rm unifi_sysvinit_all.deb
8. Use the wget command with the previously copied link to download the UniFi Controller installation file and store it in the /tmp directory.
9. Replace https://dl.ui.com/unifi/x.xx.xx_version/unifi_sysvinit_all.deb with the previously copied URL.
wget https://dl.ui.com/unifi/x.xx.xx_version/unifi_sysvinit_all.deb
10. Wait for the firmware download process to complete and install the new version using the dpkg command:
sudo dpkg -i unifi_sysvinit_all.deb
11. Wait for the installation process to complete and remove the unifi_sysvinit_all.deb file afterwards.
rm unifi_sysvinit_all.deb