Howto install nano on Centos 6.3 or Redhat 6.3 RHEL

Howto install nano on Centos 6.3 or Redhat 6.3 RHEL

1. Check nano installed or not

[root@localhost ~]# nano /etc/passwd
-bash: /bin/nano: No such file or directory
[root@localhost ~]#

2. Install nano on our Centos or Redhat

[root@localhost ~]# yum install nano
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.cuhk.edu.hk
* epel: ftp.jaist.ac.jp
* extras: ftp.cuhk.edu.hk
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package nano.x86_64 0:2.0.9-7.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
nano x86_64 2.0.9-7.el6 base 436 kTransaction 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:03
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!
[root@localhost ~]#

3. Check nano command after install

[root@localhost ~]# nano /etc/fstabGNU nano 2.0.9 File: /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sat Dec 8 01:12:09 2012
#
# Accessible filesystems, by reference, are maintained under ‘/dev/disk’
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=a148de7a-b188-4880-8580-67b8ff7c1a79 / ext4 defaults 1 1
UUID=1a2b1fe9-247c-47b0-bf05-0f8eaf17e734 /boot ext4 defaults 1 2
UUID=d9720c91-50f5-4ce4-814e-9d28364ad254 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

That’s all. Thanks for using IThelpblog.com

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>