< Previous | Contents | Next >
Upgrading A Package From A Package File
If an updated version of a package has been downloaded from a non-repository source, it can be installed, replacing the previous version:
Table 14-8: Low-Level Package Upgrade Commands
Style Command(s)
Style Command(s)
Debian dpkg --install package_file
Red Hat rpm -U package_file
Example: Updating an existing installation of emacs to the version contained in the pack - age file emacs-22.1-7.fc7-i386.rpm on a Red Hat system:
rpm -U emacs-22.1-7.fc7-i386.rpm
rpm -U emacs-22.1-7.fc7-i386.rpm
Note: dpkg does not have a specific option for upgrading a package versus in- stalling one as rpm does.