Operation and maintenance of the installation package 18 RPM

Red Hat is a .RPM company developed the software management mechanism, is a way of database records you will need to install a software management system linux system.

.RPM two advantages:
1, the software package has been compiled, so easy to transport and install, allowing users to remove the compiler
2, prior to installation, will first disk, operating system version check system, etc., to avoid installation error
message 3, the software have been linux recorded on the database host, easy access, upgrade and uninstall

Three .RPM Disadvantages:
1, the package must be installed in accordance with the environment when packaging or equivalent
2, the software must rely on the software installed [rpm to install software A, B if the software is dependent on the software, you must first install B, can a software installation
choose to use yum to install (automatically handles dependencies)]
3, when unloaded, the bottom of the first software can not be removed, it may cause the whole system can not be used

Four naming format.
Software name - version - release number - for linux system hardware platform
wget- 1.14-18.el7_6.1.x86_64

V. commonly used parameters

rpm
options:
-ivh rpm install a package, and display detailed information, and print installation progress bar
-Uvh upgrade a rpm package, and display detailed information, and print progress bar installation (if there is no software to install press operation)

	(提供软件名称即可,不用带软件的版本号之类的)
	-e	卸载软件包( 不太建议生产环境执行卸载操作  )
	-q	查看指定软件包是否安装
	-qa	查询所有已安装的软件包
	-ql	查询指定软件包所安装的目录、文件列表
	-qc	查询指定软件包的配置文件
	-qf	查询系统中已存在的命令或者文件 所属那个rpm包提供(rpm -qf 有一个弊端: 只能查看系统中已经存在的命令和文件--->对应的软件包。当真正要查询一个系统中不存在的命令,或文件,我们会选择使用 yum provides 去查询)
	-qi	查看指定软件的详细信息

VI. No dependencies installed

Local installation: rpm -ivh /mnt/Packages/tree-1.6.0-10.el7.x86_64.rpm
networking installation: rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/ x86_64 / zabbix-agent-3.0.9-1.el7.x86_64.rpm

Published 22 original articles · won praise 0 · Views 290

Guess you like

Origin blog.csdn.net/weixin_44648034/article/details/105078857