GNU/Linux >> Linux Esercitazione >  >> Linux

Come installare nano editor con yum

nano è un editor a riga di comando molto utilizzato per Linux. Molte distribuzioni Linux lo hanno installato per impostazione predefinita. Ad ogni modo, se il tuo sistema non ce l'ha, puoi installarlo facilmente.

Per maggiori informazioni su nano visita la pagina web https://www.nano-editor.org/

Puoi verificare se nano è installato provando ad accedervi. Basta digitare nano. Se vedi la sua "finestra", quindi è installato.

Se non è installato, vedrai un messaggio come:

[root@webcp ~]# nano -bash: /usr/bin/nano: No such file or directory

Per controllare l'ultima versione di nano su yum usa yum info nano

[root@webcp ~]# yum info nano
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.steadfast.net
 * epel: mirror.steadfast.net
 * extras: repos-tx.psychz.net
 * updates: mirror.steadfast.net
Available Packages
Name        : nano
Arch        : x86_64
Version     : 2.3.1
Release     : 10.el7
Size        : 440 k
Repo        : base/7/x86_64
Summary     : A small text editor
URL         : http://www.nano-editor.org
License     : GPLv3+
Description : GNU nano is a small and friendly text editor.


Per installare nano usa il comando yum install nano

[root@webcp ~]# yum install nano
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.steadfast.net
 * epel: mirror.steadfast.net
 * extras: repos-tx.psychz.net
 * updates: mirror.steadfast.net
Resolving Dependencies
--> Running transaction check
---> Package nano.x86_64 0:2.3.1-10.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                              Arch                                   Version                                         Repository                            Size
========================================================================================================================================================================
Installing:
 nano                                 x86_64                                 2.3.1-10.el7                                    base                                 440 k

Transaction Summary
========================================================================================================================================================================
Install  1 Package

Total download size: 440 k
Installed size: 1.6 M
Is this ok [y/d/N]: y
Downloading packages:
nano-2.3.1-10.el7.x86_64.rpm                                                                                                                     | 440 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : nano-2.3.1-10.el7.x86_64                                                                                                                             1/1
  Verifying  : nano-2.3.1-10.el7.x86_64                                                                                                                             1/1

Installed:
  nano.x86_64 0:2.3.1-10.el7

Complete!
[root@webcp ~]# nano
[root@webcp ~]#

Ora puoi modificare i file di testo con l'editor nano 🙂

Per codice sorgente nano, binari e archivi, visita nano-editor.org/download.php


Linux
  1. Come installare MX Linux 21 passo dopo passo con schermate

  2. Come installare Nextcloud con ISPConfig 3.1

  3. Come installare l'editor nano dal codice sorgente

  4. Come installare l'ultimo GNU Nano in Linux

  5. Installa Go 1.8 con yum

Come installare Nano Text Editor su Debian 11

Come installare Nano Text Editor su CentOS 8

Come installare Vim su Ubuntu

Come installare OpenStack su Ubuntu 18.04 con DevStack

Come installare gvim Editor su Debian 11

Come installare l'ultimo editor di testo GNU Nano nel desktop Linux