CentOS

CentOS 安装 sl(小火车)

2022-11-08  本文已影响0人  Rinaloving

1. 安装

2. 上面如果不行

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#Centos7:

wget -P /etc/yum.repos.d http://mirrors.163.com/.help/CentOS7-Base-163.repo

#Centos6:

wget -P /etc/yum.repos.d http://mirrors.163.com/.help/CentOS6-Base-163.repo

#Centos5:

wget -P /etc/yum.repos.d http://mirrors.163.com/.help/CentOS5-Base-163.repo

3. 运行以下命令生成缓存

yum clean all
yum makecache

4. 再次执行(还是不行)

[root@localhost packages]# yum -y install sl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package sl available.
Error: Nothing to do
[root@localhost packages]# 

5. 下载

wget https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm 
yum -y install sl

6. 输入 sl

sl
oes17-w1hj4.gif
上一篇下一篇

猜你喜欢

热点阅读