linux 装nano命令,linux下安装 nano 如果没有这个命令的话~~可以看下
首先查看下這個目錄里有沒有Centos-Base.repo這個文件(附件里有這個)
然后用Xmanager下的xftp 把本機上的這個文件復(fù)制到虛擬機中的/目錄下
[root@fox ~]#mv Centos-Base.repo /etc/yum.repos.d/
[root@fox ~]# cd /etc/yum.repos.d/
[root@fox yum.repos.d]# ls
Centos-Base.repo??CentOS-Debuginfo.repo ?CentOS-Media.repo ?CentOS-Vault.repo ? 剪切過去 ?查看這個目錄 ?里面出現(xiàn)這個文件
然后執(zhí)行
[root@fox yum.repos.d]#yum clean all
[root@fox yum.repos.d]#yum makecacheLoaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
base ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 3.7 kB ? ? 00:00
base/group_gz ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 220 kB ? ? 00:00
base/filelists_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 5.9 MB ? ? 00:02
base/primary_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 4.4 MB ? ? 00:02
base/other_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 2.8 MB ? ? 00:01
extras ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 3.3 kB ? ? 00:00
extras/filelists_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ?11 kB ? ? 00:00
extras/prestodelta ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ?904 B ? ? 00:00
extras/primary_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ?19 kB ? ? 00:00
extras/other_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ?22 kB ? ? 00:00
updates ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 3.4 kB ? ? 00:00
updates/filelists_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 3.0 MB ? ? 00:00
updates/prestodelta ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 535 kB ? ? 00:00
updates/primary_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 5.4 MB ? ? 00:02
updates/other_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ?46 MB ? ? 00:26
Metadata Cache Created
這2條命令 會提示下載安裝包組件
然后就可以安裝nano啦!!!
[root@fox ~]#?yum install nano
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nano.x86_64 0:2.0.9-7.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package ? ? ? ? Arch ? ? ? ? ? ? ?Version ? ? ? ? ? ? ? ?Repository ? ? ? Size
================================================================================
Installing:
nano ? ? ? ? ? ?x86_64 ? ? ? ? ? ?2.0.9-7.el6 ? ? ? ? ? ?base ? ? ? ? ? ?436 k
Transaction Summary
================================================================================
Install ? ? ? 1 Package(s)
Total download size: 436 k
Installed size: 1.5 M
Is this ok [y/N]: y
Downloading Packages:
nano-2.0.9-7.el6.x86_64.rpm ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 436 kB ? ? 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : nano-2.0.9-7.el6.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1/1
Verifying ?: nano-2.0.9-7.el6.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1/1
Installed:
nano.x86_64 0:2.0.9-7.el6
Complete!
紅色的是主要命令 ? 不會的小伙伴可以試試 ?, 我用的是CentOS 6.5 64位的
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的linux 装nano命令,linux下安装 nano 如果没有这个命令的话~~可以看下的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 多少人配个电脑主要是为了玩LOL类的网游
- 下一篇: 笔记本电脑开机后进不了系统桌面笔记本电脑