RPM installation, anti-installation and upgrade packages

Source: Internet
Author: User
  briefly introduce the use of R P M. 1.     Install the package with R P M The simplest installation commands are as follows: RPM-IVH foo-1.0-1.i386.rpm foo #################################### R P will output the name of the package and display a status bar. Installing the software is simple, but sometimes it gives you some error messages: A. "Package already Installed" If the package is installed, you will see the following error message: $ RPM-IVH foo-1.0-1.i386.rpm foo Package foo-1.0-1 is already insta Lled error:foo-1.0-1.i386.rpm cannot be installed if you want to force the installation to add option replacepkgs, this option forces R P M to reinstall the software. B. "Conflicting Files" if the package contains files that have been installed by some other packages, you will see the following error message: # RPM-IVH foo-1.0-1.i386.rpm foo             /usr/bin/foo conflicts with file from Bar-1.0-1 error: FOO-1.0-1.I386.RPM cannot be installed if you want to overwrite the original file, use the R e p L a C E F l e s option. C The package of "unresolved Dependency" R p can query the "dependency" relationship of the software, that is, what other software packages are needed to run the software properly, so R P m will query before installation, and if the system does not have the necessary packages installed, you will see the following error message: $ rpm -IVH bar-1.0-1.i386.rpm failed Dependencies:foo is needed by bar-1.0-1 to continue with the installation, you must first install the appropriate package, in the example F o o this package, or use n o d E p s option is forced to install, however, the result of this installation is tenEight or nine cannot run. 2. Use R P m anti-installation package to reverse install package F o O, only the following line is required: $ rpm-e Foo Note that the package name is F o O, not the R p m filename "foo-1.0-1.i386.rpm". If the package is required for other packages to run, you will see the following error message: $ rpm-e foo Removing these packages would-break Dependencies:foo-needed by bar-1.0-1 If you want to forcibly reverse install, use the--nodeps option, but the associated package will not run. 3. Upgrading software with R P m is similar to installing software: $ RPM-UVH foo-2.0-1.i386.rpm Foo It is noteworthy that R P will automatically reverse the old version of the corresponding package. If the old version of the software's configuration file is incompatible with the new version, R P will automatically save it as a different file, and you will see the following information: saving/etc/foo.conf As/etc/foo.conf.rpmsave So, Users can manually change the corresponding configuration file. In addition, if the user wants to install the old version of the software, you will see the following error message: $ RPM-UVH foo-1.0-1.i386.rpm foo      package foo-2.0-1 (which is newer) are already installed error:foo-1.0-1.i386.rpm cannot be installed if you want to force installation use-O l d p a C K a G e parameter.  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.