650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/> First check if there are any Centos-base.repo in this directory (this is included in the attached file).
Then use the Xmanager under the xftp to copy this file on the machine to the virtual machine/directory
[Email protected] ~]# MV centos-base.repo/etc/yum.repos.d/
[Email protected] ~]# cd/etc/yum.repos.d/
[[email protected] yum.repos.d]# ls
Centos-base.repo Centos-debuginfo.repo Centos-media.repo Centos-vault.repo cut past View this file appears in this directory
And then execute
[email protected] yum.repos.d]# yum clean all
[email protected] yum.repos.d]# yum Makecache
Loaded 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 | 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 | One KB 00:00
Extras/prestodelta | 904 B 00:00
extras/primary_db | KB 00:00
extras/other_db | 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 | MB 00:26
Metadata Cache Created
These 2 commands will prompt you to download the installation package components
Then you can install the Nano!!!
[Email protected] ~]# 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 'll 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!
Red is the main command will not be small partners can try, I use CentOS 6.5 64-bit
Install nano under Linux If you don't have this command, you can look at it.