[英]Install 'yum' in Centos7
I've deleted yum from my server and I did wget to download yum again and extract it.我已经从我的服务器中删除了yum并且我做了 wget 再次下载yum并解压缩它。 In this folder, I have a lot of files:
在这个文件夹中,我有很多文件:
AUTHORS completion-helper.py Makefile shell.py yumcommands.py
bin COPYING output.py test yum-cron
callback.py docs po TODO yummain.py
ChangeLog etc README utils.py yum.spec
cli.py INSTALL rpmUtils yum yum-updatesd.py
How can I install it?我该如何安装?
Another solution to install packages is to use the RPM command.安装软件包的另一种解决方案是使用RPM命令。 You first need to download the rpm file and then install it.
您首先需要下载 rpm 文件,然后安装它。 For more infos: RPM man page
更多信息: RPM 手册页
So, to install yum , simply run those two commands:因此,要安装yum ,只需运行这两个命令:
wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
rpm -ivh yum-3.4.3-154.el7.centos.noarch.rpm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.