1. 程式人生 > >在Linux下新增sl指令

在Linux下新增sl指令

紅樓隔雨相望冷,珠箔飄燈獨自歸。 ——李商隱《春雨》

準備安裝跑火車的指令,但是卻報錯,這個原因是缺少EPEL,先下載EPEL:


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

解壓安裝:


[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!

到此,執行sl指令就能看到一個火車跑過了。