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
options |
option meaning |
-i |
install package |
-v |
output details |
-h |
print hash marks when installing packages |
--replacepkge |
|
--test | 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; " >
--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