the linux rpm and yum

Introduce a .rpm

一种用于互联网下载包的打包及安装工具.它生成具有.RPM
扩展名的文件。RPM
是 RedHat
Package Manager(RedHat 软件包管理工具)的缩写,类似
windows 的 setup.exe

Two .rpm related instructions

rpm –qa             #查询已安装的 rpm 列表
rpm -q 软件包名                 #查看是否已经安装
rpm -qi 软件包名                #查看软件包信息
rpm -ql 软件包名                #查看软件包中的文件安装位置
rpm -qf 文件(如:/etc/passwd)    #查看某个文件属于哪个rpm包
rpm -e 包名                     #卸载包
rpm -ivh RPM 包全路径名称      #安装包
rpm  i            #install 安装
rpmv v            #erbose 提示
rpm  h            #hash 进度条

Three .rpm package structure

For example a package name rpm: firefox-45.0.1-1.el6.centos.x86_64.rpm

firefox #名称
45.0.1-1 #版本号
el6.centos.x86_64:centos6.X---64位    #安装的系统

Four .yum Introduction

Yum is a Shell front-end package manager. Based RPM package management can be automatically downloaded from the server specified
RPM package and install, can be handled automatically dependencies and install all dependent packages. Use yum premise that can be networked.

Types ofpython中的pip

Five .yum basic commands

yum list|grep xx        #查询yum服务器上是否有需要安装的包
yum install xxx         #下载安装
yum uninstall xxx       #卸载

Guess you like

Origin www.cnblogs.com/pythonywy/p/11801204.html