Nano – How to Get Latest Version of Nano (4.5) on CentOS 7

centoscentos7nano

The latest version of the nano editor is 4.5 (https://www.nano-editor.org/)… I'm running 2.3.1 on my CentOS 7 server and want to upgrade. But no repos (EPEL, Remi, etc.) seem to have anything newer than 2.3.

How can I get the latest nano? Do I need to build it from scratch on the server? I'd rather be able to use yum to manage installs/upgrades, if possible.

I see lots of download options (packages, Open SUSE[?], distributions, blah blah) on the nano page but none of them seem to be the right thing for yum. I think.

Best Answer

EL 7 packages were established a few years ago, and their builds are still at 2.3 because it is a stable distro. Many repos will not replace packages from base EL.

To continue using a Red Hat RPM, consider upgrading the OS of your editor environment (could be a VM or a container).

EL 8 appears to be up to 2.9, based on the CentOS 8 nano.spec and the packages on the mirrors. Not the latest.

Fedora 30 is newer, 4.2.

Or, feel free to compile yourself, perhaps take the Fedora spec and rebuild. As usual, you take on more responsibility if building yourself.

Related Topic