At this write time, CentOS ships the following versions of nano:
Centos 5.9
nano --version
GNU nano versión 1.3.12 (compilado 14:20:47, Jan 9 2007)
Correo: [email protected] Web: http://www.nano-editor.org
Opciones compiladas: --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8
Centos 6.4
nano --version
GNU nano versión 2.0.9 (compilado 07:18:28, Nov 12 2010)
(C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
Free Software Foundation, Inc.
Correo: [email protected] Web: http://www.nano-editor.org
Opciones compiladas: --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8
For install a new version, previously ensure remove the nano package installed with:
# yum remove nano
After you can install the rpm package from nano download page (for example 2.2.6 for 64 bits):
# rpm -ivh http://www.nano-editor.org/dist/v2.2/RPMS/nano-2.2.6-1.x86_64.rpm
As far I see, upgrading the nano package doesn't have any compability problems in 5.9 or 6.4.