32.3 C
Senior Writer and partner

How to install the latest version of nano on Ubuntu 20.04?

Hello, friends. In recent days I was talking to some colleagues and out of the blue the subject of nano came up. This text editor is present by default in Ubuntu and we use it a lot but we never used its last version. Well, in this post, you will learn how to install the latest version of nano on Ubuntu 20.04

Well, quickly we can say that nano is a text editor in the terminal. It stands out for its ease of use and speed. With this editor, we can open and modify text files and settings from the terminal. All this without sacrificing resources and comfortably.

Besides basic text editing, nano offers features like undo/redo, syntax coloring, interactive search-and-replace, auto-indentation, line numbers, word completion, file locking, backup files, and internationalization support

As we may suspect, nano is open source and is included in almost all Linux distributions that exist. But for a strange reason, we never can use the latest version and that nano has very active development.

- Advertisement -

So, the possibility we have is to compile it manually but there is another simpler method if we use homebrew.

Install the latest version of nano on Ubuntu 20.04

The process of having the latest version of nano in Ubuntu 20.04 easily and simply is thanks to Homebrew.

We have talked about Homebrew and we think it is a fabulous tool that allows you to install applications quickly and easily as Hugo.

Well, nano is also available to be installed using this tool and the best thing is that we can have the latest stable version.

So, first install Homebrew

How to install Homebrew on Ubuntu 20.04?

Once Homebrew is perfectly configured we can continue.

Check the current version of nano with the following command:

nano --version
GNU nano, version 4.8
  (C) 1999-2011, 2013-2020 Free Software Foundation, Inc.
  (C) 2014-2020 the contributors to nano
  Email: [email protected]    Web: https://nano-editor.org/
  Compiled options: --disable-libmagic --enable-utf8

As you can see, the version is a little old, so don’t have problems, uninstall it.

sudo apt autoremove nano

And now install the latest version of nano

brew install nano
1.- Install nano on Ubuntu 20.04
1.- Install nano on Ubuntu 20.04

And at the end, check the installed version

nano --version

Now create a test file

nano text.txt

And add some text

2.- the latest version of nano on Ubuntu 20.04
2.- the latest version of nano on Ubuntu 20.04

You now have the latest version of nano on your system. Something simpler than it seems and that can be useful at any time.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


Please enter your comment!
Please enter your name here

Latest article