"Linux learning is not difficult" use the RPM software package (3): Install the RPM package

Source: Internet
Author: User

14.3 "Linux learning is not difficult" Use RPM Software packages ( 3 ): Install RPM Package

RPM installation process for software packages 9.1 shown, if the package satisfies the dependency condition, the installation is allowed, and if the dependencies are not met, the other packages need to be installed first.

Use rpm command can be Linux Install, delete, refresh, upgrade, query in the system RPM package.

Command syntax:

rpm [ options ] [rpm Package file name ]

The meanings of the options in the command are as shown in the table.

only tests the installation and does not actually install

TD width= "387" valign= "Top" style= "Border-top:none; Border-left:none; border-bottom-width:1px; Border-bottom-color:windowtext; border-right-width:1px; Border-right-color:windowtext; padding:0px; " >

options

option meaning

-i

install package

-v

output details

-h

print hash marks when installing packages

--replacepkge

--test

--nodeps

does not validate package dependencies

--force

ignoring package and file conflicts

--percent

--ignorearch

The schema of the package is not validated

--ignoresize

do not check disk space before installation

--replacefiles

Ignore file conflicts between packages

-e

Delete package

-u

upgrade package

-f

Refresh package

--oldpackage

upgrade older versions of packages

-q

query package

--initdb

initialize rpm database

--rebuilddb

rebuilding from the header of the installation packet RPM Database

Example: Install the bind-9.9.4-29.el7.x86_64.rpm package and display detailed information and a horizontal progress bar during installation.

[Email protected] packages]# RPM-IVH bind-9.9.4-29.el7.x86_64.rpm

Example: Install to Bind start the package.

[[email protected] Packages] #rpm-IVH bind*

Example: in a package bind-9.9.4-29.el7.x86_64.rpm The package is still installed if it is already installed.

[Email protected] packages]# RPM-IVH--replacepkgs bind-9.9.4-29.el7.x86_64.rpm
Example: Ignoring dependencies of packages, forcing installation bind-chroot-9.9.4-29.el7.x86_64.rpm package.
[Email protected] packages]# RPM-IVH--nodeps bind-chroot-9.9.4-29.el7.x86_64.rpm



This article extracts from "Linux Learning is not difficult" textbook, which is one of the most practical, theoretical and practical Linux Introductory materials.


"Linux learning is not difficult" use the RPM software package (3): Install the RPM package

Related Article

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.