配置yum源

问题参考:https://blog.csdn.net/CCESARE/article/details/113919036
配置yum源参考:https://blog.csdn.net/ct_666/article/details/112754363

更新yum源为阿里云:直接去大厂的镜像站找方案即可
https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.796d1b116vRpJK

yum clean all && yum makecache && yum update

yum 指定安装源安装某个软件的方法:yum install nginx --enablerepo=epel

yum install XXX --enablerepo=YYY XXX是要安装的软件,YYYrepo源的名字。

建议安装的时候尽量选择同一个源。因为不同的源安装的软件可能会有冲突。比如mplayerf*d

# 以下安装的软件可以在 /usr/share/doc/ 中找到
yum -y install libcurl-devel openssl-devel unzip
posted @ 2022-03-09 00:39  黄河大道东  阅读(27)  评论(0编辑  收藏  举报