RPM:: Update compares installed RPM packages (listed by the command "rpm -qa") on a Linux system with an up-to-date distribution.
That distribution may either reside in a local directory (possibly NFS mounted) or on a ftp server. Options are to be specified as a list of arguments to RPM:: Update::execute.
If -d directory is omitted as well, the $RPMDIR directory is used.If $RPMDIR is not set, the default directory "/mnt/redhat/Red- Hat/RPMS" is used.RPM:: Update uses a lexical sort on the version string and the release string of the package in order to decide whether the installed package or the package form the distribution is newer.If ftpserver/directory is not specified, $FTPSERVER/$FTPUPDATES is used.The $FTPSERVER and $FTPUPDATES variables can be set in the configuration file.
If either of the two is not set, the default server "updates.redhat.com" and the default directory "$RHversion/en/os" is used, where $RHversion is obtained from the /etc/redhat-release file.
If run with the -ftp option, all rpm packages that need to be downloaded (see the --download, --recheck, and --update options) will be downloaded into the directory specified by the -d directory option.
If that option is omitted the $RPMDIR directory is used.
The $RPMDIR variable that can be set in the configuration file.
If $RPMDIR variable is not set either, the default directory "/mnt/redhat/Red Hat/RPMS" is used.
If the -ftp is omitted, it is assumed that -d directory specifies a local directory that contains up-to-date rpm packages.