libo 发表于 2018-8-4 18:21:26

在Linux下添加sl指令

准备安装跑火车的指令,但是却报错,这个原因是缺少EPEL,先下载EPEL:


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


解压安装:


# 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...                ###########################################
   1:epel-release         ###########################################
# 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
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
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!



到此,执行sl指令就能看到一个火车跑过了。
页: [1]
查看完整版本: 在Linux下添加sl指令