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.
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
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
And at the end, check the installed version
Now create a test file
And add some text
You now have the latest version of nano on your system. Something simpler than it seems and that can be useful at any time.