rpm
1.1、rpm简介
short for:
RedHat Pacakge Manager
RPM    Package Manager
what's it:a low-level, but powerful command-line package manager.
used by:RHELCentOSFedoraopenSUSE
开发语言:C
官方主页:https://rpm.org
高级工具:yumdnfzypper
1.2、rpm [option]...
1.2.1、-E  | --eval <EXPR>...

示例:

rpm -E %centos
rpm -E %fedora

分别显示出CentOSFedora的主版本号。

1.2.2、-i  | --install <FILE | URL>...

安装某(几)个指定的软件包。

rpm -i epel-release-latest-7.noarch.rpm
rpm -i https://mirrors.ustc.edu.cn/epel/epel-release-latest-7.noarch.rpm
1.2.3、-v  | --verbose

打印出详细的日志。

rpm -iv epel-release-latest-7.noarch.rpm
rpm -iv https://mirrors.ustc.edu.cn/epel/epel-release-latest-7.noarch.rpm
1.2.4、-h  | --hash

打印出进度,某些过程比较消耗时间,打印出进度,用户体验比较好。

rpm -ivh epel-release-latest-7.noarch.rpm
rpm -ivh https://mirrors.ustc.edu.cn/epel/epel-release-latest-7.noarch.rpm