(Junos) Example - Upgrade Junos OS With No-Copy Option
(Junos) Example - Upgrade Junos OS With No-Copy Option
Description
This article provides an example explaining the outcome when upgrading Junos OS with the no-copy
option and without the no-copy option.
For a similar example using the unlink option, see KB32191 - Example - Upgrade Junos OS with unlink
option on SRX .
For a similar example using the partition option, see KB32192 - Example - Upgrade Junos OS with
partition option on SRX .
Note: The Installation and Upgrade Guide provides an example of the common method to upgrade Junos
OS on SRX devices ; however, if your installation requires using different options, these examples explain
the outcome.
Solution
Note: By default, the firmware file will be copied to the /var/sw/pkg/ directory on internal storage
upon software installation. With the no-copy option, the firmware file will not be copied to internal
storage.
Below is the output when upgrading Junos OS without the no-copy option and with the no-copy
option, performed on SRX branch devices.
Before upgrade
/var/tmp/install/:
junos-srxsme-15.1X49-D110.4-domestic.tgz
https://supportportal.juniper.net/s/article/Junos-Example-Upgrade-Junos-OS-with-no-copy-option?language=en_US Page 1 of 3
[Junos] Example - Upgrade Junos OS with no-copy option 05/06/24, 9:33 PM
When upgrading Junos OS without the no-copy option, the message "saving package file in
/var/sw/pkg" is reported, and after the upgrade has completed, a copy of the install package
remains in the directory /var/sw/pkg/.
After upgrade
root@SRX-345-2>
Before upgrade
https://supportportal.juniper.net/s/article/Junos-Example-Upgrade-Junos-OS-with-no-copy-option?language=en_US Page 2 of 3
[Junos] Example - Upgrade Junos OS with no-copy option 05/06/24, 9:33 PM
After upgrade
Modification History
2020-08-24: Article reviewed for accuracy; article found valid and relevant; minor change made
2019-09-27: Added note to solution about the no-copy option.
https://supportportal.juniper.net/s/article/Junos-Example-Upgrade-Junos-OS-with-no-copy-option?language=en_US Page 3 of 3