request system software delete (Junos OS Evolved)
Syntax
request system software delete <force> <package-name> <archived> <all-third-party-packages>
Description
Use this command to remove a software package from the device, as long as it is not the
software version currently running on the system. The force
option is
required if the requested version is the rollback version.
Before removing a software package, make sure that you have already placed the new software package that you intend to load onto the device, in the /var/tmp directory.
If you have added a new software package, but you have not yet rebooted the system to complete the installation of the package, use this command to remove the newly added package and cancel the installation.
Options
package-name |
Name of the Junos OS Evolved package running on the device. Type the package-name
explicitly and do not use the tab key to auto-complete the command. You can see this
package name by issuing the |
all-third-party-packages |
(Optional) Delete all third-party software on the device. |
archived |
(Optional) Delete all archived software versions except the current and the rollback versions. When there is a pending next-boot software version, you must reboot the system to finish installing that version, or delete just that version, before you can delete any versions with this option. If the other Routing Engine in the system has more images than the one from which you are issuing the command, the older versions are deleted from the current Routing Engine and the current and the rollback versions are synchronized to the other Routing Engine. |
force |
(Optional) Ignore warnings and force removal of the software. The
|
Additional Information
Before you upgrade the software on the router or replace one of the Routing Engines, when
you have a known stable system, issue the request system snapshot
command
to back up the software, including the configuration, to the /soft
directory. After you have upgraded the software or have replaced one of the Routing Engines,
and are satisfied that the software packages are successfully installed and running, issue
the request system snapshot
command again to back up the software to the
/soft directory.
After you run the request system snapshot
command, you cannot return to
the previous version of the software because the running and backup copies of the software
are identical.
Required Privilege Level
maintenance
Output Fields
When you enter this command, the system provides feedback on the status of your request.
Sample Output
- request system software delete (Junos OS Evolved)
- request system software delete archived
- request system software delete archived (with Next-boot Software Version in System)
- request system software delete archived (with Only a Current and Rollback Version Available)
request system software delete (Junos OS Evolved)
user@host> request system software delete junos-evo-install-qfx-fixed-x86-64-18.3I20180911102422 Removing version 'junos-evo-install-qfx-fixed-x86-64-18.3I20180911102422'. Software ... done. Data ... done. Version 'junos-evo-evo-qfx-fixed-x86-64-18.3I20180911102422' removed successfully.
request system software delete archived
user@host-re0> request system software delete archived ALERT: This command will delete all archived SW versions except current and rollback. Do you want to proceed? [yes,no] (no) yes Software delete in progress... re0: Executing Software delete... re0: Cannot delete junos-evo-install-ptx-x86-64-20.4-202103141559.0-EVO - It is the current version re0: Rollback or scratch install re0: Removing version junos-evo-install-ptx-x86-64-20.4-202103150459.0-EVO... re0: Removing version junos-evo-install-ptx-x86-64-20.4-202103111254.0-EVO... re1: Removing version junos-evo-install-ptx-x86-64-20.4-202103150459.0-EVO... re1: Removing version junos-evo-install-ptx-x86-64-20.4-202103111254.0-EVO... Image deletion succeeded.
request system software delete archived (with Next-boot Software Version in System)
user@host-re0> request system software delete archived ALERT: This command will delete all archived SW versions except current and rollback. Do you want to proceed? [yes,no] (no) yes re0: Software delete cannot proceed as reboot is pending after upgrade/rollback to junos-evo-install-ptx-x86-64-20.4I20210212000536-EVO. re0: Please reboot before doing delete operation. re0: Or Delete junos-evo-install-ptx-x86-64-20.4I20210212000536-EVO using 'request system software delete'. re0: Run 'show system software list' to get all installed software versions Image deletion failed.
request system software delete archived (with Only a Current and Rollback Version Available)
user@host-re0> request system software delete archived ALERT: This command will delete all archived SW versions except current and rollback. Do you want to proceed? [yes,no] (no) yes re0: Only minimal set of software versions exists. Cannot delete Current or Rollback versions. Image deletion failed.
Release Information
all-third-party-packages
option introduced in Junos OS Evolved Release
19.4R2.
archived
option added in Junos OS Evolved Release 20.4R2.