Purpose
As new features become available or as software problems are fixed, you might periodically upgrade the router software.
To upgrade JUNOS software, follow these steps:
Action
Copy the software packages from the server to the router. We recommend that you copy them to the /var/tmp directory, which is on the rotating medium (hard disk) and is a large file system. Use the following CLI command:
- user@host> file copy ftp://username: prompt@ftp.hostname. net/jbundle-package-name/var/tmp/jbundle-package-name
Action
To add new software packages, use the following JUNOS CLI operational mode command:
package-name is the full URL to the file and release-number is the major software release number; for example, 4.2R1. Before the new software is added, the existing software is automatically deleted.
![]() |
Note: Even though you are adding the new software, the changes do not take effect until the router has completed rebooting. |
Sample Output
user@host> request system software add /var/tmp/jinstall-5.2R2.3-domestic.tgz Installing package '/var/tmp/jinstall-5.2R2.3-domestic.tgz Auto-deleting old jroute... Auto-deleting old jdocs... Auto-deleting old jpfe... Auto-deleting old jkernel... Adding JUNOS base software 5.2R2.3 Adding jkernel... Adding jpfe... Adding jdocs... Adding jroute... NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install Saving package file in /var/sw/pkg/jinstall-5.2R2.3-domestic.tgz
Purpose
After you have added new software packages, you must reboot the router for the new software to take effect.
Action
To reboot the router to complete the upgrade, use the following JUNOS CLI operational mode command: