Installation of packages under Linux (Rpm,yum)

Source: Internet
Author: User
Tags linux

Installing software with rpm

To facilitate Linux users to add and remove software, Red Hat Company Package Manager rpm, because it makes it easier to install and uninstall applications in Linux, by default (that is, no file dependencies) users just double-click the RPM software package, the system will automatically install.

An RPM package file is a collection of all the files that enable the application to run, which records the contents of the binary software, the location of the installation, the description of the package, the dependencies between the packages, and so on. The RPM tool fully manages all RPM packages in the system, so it remembers what the user added and the specific installation path for each file, so that users can completely and completely delete them. In general, the RPM package releases software that is easier to install and maintain than software that needs to be compiled manually, but some RPM packages require a large number of dependencies, which can be a headache if there is no networking.

Software Installation process:

The use of RPM package management;

1, can install, delete, upgrade and management software, of course, also support the online installation and upgrade software;

2, through the RPM package management can know what the package contains files, but also know the system in which a file belongs to which package;

3, can be in the query System package is installed and its version;

4, as a developer can package their own program for the RPM package release;

5, Package signature GPG and MD5 import, verification and signature release

6. Dependency checking to see if there are any software packages that disrupt the system because of incompatibility;

RPM permission to use;

RPM Software Installation, deletion, update only root permission to use, for the query function any user can operate, if ordinary users have permissions to install the directory, can also be installed;

We can use the RPM-QA package name to query whether the package is installed before the package is installed

A simple use of RPM;

In the terminal we can use rpm-i [option] [RPM package filename] to install

To install a package using the RPM-IVH package name

RPM common options are as follows:

RPM-QL the package name to inquire about the installed package

RPM-QA Package Name Query package is installed

RPM-E the package name to uninstall the installed package

RPM-UVH package name to upgrade and install packages

RPM-FVH Package name only upgrades the package

RPM-V Package name to check the information of the package

RPM--replacepkge Install packages regardless of whether the package has been installed

RPM--test installation test, not actually installed

RPM--nodeps Ignore package dependencies forced installation (generally not functional because of lack of dependent files)

RPM--force Ignore package and file conflicts

RPM--QPI View information about the purpose, version, etc. of a package

RPM--oldpackage degraded from new version to old version

RPM--import Import Signature file

When the RPM package is installed, the dependencies between packages will not be resolved automatically, only prompts on the screen

Please refer to #man rpm for more detailed details.

Using Yum to install software

Yum installation can be divided into network yum and local Yum

Yum List all view all of the national treasures

Yum Info Package Name View Package installation Information

Yum Install the biggest thing is to help us solve the package dependencies, and RPM is not

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.