Linux下的安装yum与rpm的比较

rpm

rpm相当于windows里面的控制面板中程序卸载与安装的功能,它是一个本地软件包的管理器。
其常用的参数有
rpm -qa |grep packagename 查询是否有本地包
rpm -ivh packagename 安装某个包,并显示安装过程
rpm -e packagename 卸载某个包

yum

man yum 如下:
yum is an interactive, rpm based, package manager. It can automatically
perform system updates, including dependency analysis and obsolete processing based on “repository” metadata. It can also perform installation of new packages, removal of old packages and perform queries on the installed and/or available packages among many other commands/services (see below). yum is similar to other high level package managerslike apt-get and smart.
这个是man里面的描述,已经很清楚了。它就是基于rpm的一个软件包管理工具,它可以从网上下载rpm包和依赖。

二者的区别
rpm管理本地包的安装、卸载、查询
yum拥有rpm的功能,还具备了从网络上下载rpm包和依赖的功能。

发布了149 篇原创文章 · 获赞 27 · 访问量 5061

猜你喜欢

转载自blog.csdn.net/qq_44783220/article/details/102897131