大网数据广告活动
服务器运维问答

How can I get latest version of nano (4.5) on CentOS 7?

· 52CE 我爱测

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…

问题原文

原帖链接 · Eric · CC BY-SA 4.0

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.

已采纳解答

原帖链接 · John Mahowald · CC BY-SA 4.0

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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-10-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。