Updating JunOS from the Command Line
If you’re new to Juniper, you’ll find that the system update procedure is quite different to what you’re used to.
This guide will take you through each part, step-by-step.
- Get the new image file from Juniper
- Confirm the current version with show version
- Upload the file to the switch or router (using SCP, TFTP, USB, or whatever method you want); /var/tmp is a good location to copy to
- Add the new image with request system software add /var/tmp/[filename] reboot
- This will reboot the device when the update has been applied
You may find that you don’t have enough space to install the update:
[email protected]> request system software add /var/tmp/ex-2300-18.3R1.9.tgz reboot ERROR: estimate of space required: 115 Mbytes, available: 89 Mbytes
If this happens, you can request a cleanup of temporary files to increase space.
Alternatively, you could try installing directly from USB:
- Enter the Shell
- Mount the USB drive
- Return to the CLI
- Install the update as above, using the mount point as the path