[Linux] Linux practical operation --- RPM and YUM


(1) Management of rpm package

① Introduction

Insert picture description here


② Simple query command of rpm package:

Insert picture description here


③ The basic format of rpm package name:

Insert picture description here


④ Other query commands of rpm package:

Insert picture description here


Case 1: rpm -qa
rpm -qa | grep firefox 等价于 rpm -q firefox

Insert picture description here


Case 2: rpm -qi
rpm -qi firefox  : 查询firefox软件包的信息

Insert picture description here


Case 3: rpm -ql
rpm -ql firefox :查询firefox软件包中有哪些软件

Insert picture description here


Case 4: rpm -qf
rpm -qf /etc/passwd : 查询/etc/passwd属于哪个软件包

Insert picture description here


⑤ Uninstall the rpm package

Insert picture description here


Case 1: Uninstall firefox
rpm -e firefox

Insert picture description here


⑥ Install the rpm package:

Insert picture description here


Case 1: Download firefox

Insert picture description here


(2) yum

① Introduction

Insert picture description here
Insert picture description here


② The basic instructions of yum:

Insert picture description here


③ yum application examples:

Case 1: Query whether the yun server has firefox

Insert picture description here


Case 2: Please use yum to install firefox
yum install firefox

会下载最新版本,以及自动处理好各种依赖性关系

Guess you like

Origin blog.csdn.net/weixin_45260385/article/details/114496830