RPM and YUM
(1) Management of rpm package
① Introduction
② Simple query command of rpm package:
③ The basic format of rpm package name:
④ Other query commands of rpm package:
Case 1: rpm -qa
rpm -qa | grep firefox 等价于 rpm -q firefox
Case 2: rpm -qi
rpm -qi firefox : 查询firefox软件包的信息
Case 3: rpm -ql
rpm -ql firefox :查询firefox软件包中有哪些软件
Case 4: rpm -qf
rpm -qf /etc/passwd : 查询/etc/passwd属于哪个软件包
⑤ Uninstall the rpm package
Case 1: Uninstall firefox
rpm -e firefox
⑥ Install the rpm package:
Case 1: Download firefox
(2) yum
① Introduction
② The basic instructions of yum:
③ yum application examples:
Case 1: Query whether the yun server has firefox
Case 2: Please use yum to install firefox
yum install firefox
会下载最新版本,以及自动处理好各种依赖性关系