搜索
查看: 5682|回复: 0

在Linux下添加sl指令

[复制链接]

330

主题

177

回帖

1071

积分

vip用户

积分
1071

注册会员活跃会员热心会员

QQ
发表于 2018-8-4 18:21:26 来自手机 | 显示全部楼层 |阅读模式
准备安装跑火车的指令,但是却报错,这个原因是缺少EPEL,先下载EPEL:

[pre]
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[/pre]

解压安装:

[pre]
[root@bogon day-0803]# rpm -ivh epel-release-6-8.noarch.rpm
warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
[root@bogon day-0803]# yum install sl
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink                                                                    | 7.6 kB     00:00     
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
epel                                                                             | 3.2 kB     00:00     
epel/primary                                                                     | 2.9 MB     00:01     
epel                                                                                        10197/10197
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sl.i686 0:5.02-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
Package              Arch                   Version                       Repository              Size
========================================================================================================
Installing:
sl                   i686                   5.02-1.el6                    epel                    13 k

Transaction Summary
========================================================================================================
Install       1 Package(s)

Total download size: 13 k
Installed size: 13 k
Is this ok [y/N]: y
Downloading Packages:
sl-5.02-1.el6.i686.rpm                                                           |  13 kB     00:00     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <epel@fedoraproject.org>
Package: epel-release-6-8.noarch (installed)
From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : sl-5.02-1.el6.i686                                                                   1/1
  Verifying  : sl-5.02-1.el6.i686                                                                   1/1

Installed:
  sl.i686 0:5.02-1.el6                                                                                 

Complete!
[/pre]


到此,执行sl指令就能看到一个火车跑过了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表