Update RPMs and SMUs
An RPM may contain a fix for a specific defect, and you may need to update the system with that fix. To update RPMs and SMUs to a newer version, use the command. When the command is issued for a particular RPM, the router communicates with the repository, and downloads and activates that RPM. If the repository contains a dependent RPM, the router identifies that dependent RPM and installs that too.
The syntax of the command is:
repository [rpm]
Four scenarios in which you can use the command are:
-
When a package name is not specified
When no package is specified, the command updates the latest SMUs of all installed packages.
[repository]
Note
From Cisco IOS XR Version 6.1.1 onwards, if the
mini.iso
file is not specified, then it is not added as part of the update. Even if the repository contains themini.iso
file, it is not installed.scp://<username>@<server>/my/path/of/packages noprompt
-
When a package name is specified
If the package name is specified, the command installs that package, updates the latest SMUs of that package, along with its dependencies. If the package is already installed, only the SMUs of that package are installed. (SMUs that are already installed are skipped.)
[repository] ncs5500-mpls.rpm
-
When a package name and version number are specified
If a particular version of package needs to be installed, the complete package name must be specified; that package is installed along with the latest SMUs of that package present in the repository.
[repository] ncs5500-mpls-1.0.2.0-r611.x86_64.rpm
-
When an SMU is specified
If an SMU is specified, that SMU is downloaded and installed, along with its dependent SMUs.
[repository] ncs5500-mpls-1.2.0.1-r611.CSCus12345.x86_64.rpm
-
When a list of packages (containing the mini.iso file) is specified
From Cisco IOS XR Version 6.1.1 onwards, if a list of packages (containing the
mini.iso
file) is specified, all the packages in the list and themini.iso
file are automatically added as part of the update.scp://<username>@<server>/my/path/of/packages [List of packages] noprompt
-
When the mini.iso file is specified
From Cisco IOS XR Version 6.1.1 onwards, if the
mini.iso
file is specified during the update, then the file is installed with all RPMs and SMUs from the repository.scp://<username>@<server>/my/path/of/packages [mini.iso] noprompt