Most of the time, installed packages are automatically upgraded using a high-level package manager such as YUM. However, if a package is not available for upgrade through the central repository, it can be downloaded from the internet and upgraded manually, as shown here:
$ rpm -U <file.rpm>
We can use either the preceding command or the following command to upgrade a package manually:
$ rpm -Uvh <file.rpm>
An example of the rpm command to upgrade a package is shown here: