How To Install nano on Fedora 34

nano is A small text editor

Introduction

In this tutorial we learn how to install nano on Fedora 34.

What is nano

GNU nano is a small and friendly text editor.

We can use yum or dnf to install nano on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install nano.

Install nano on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install nano using dnf by running the following command:

sudo dnf -y install nano

Install nano on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install nano using yum by running the following command:

sudo yum -y install nano

How To Uninstall nano on Fedora 34

To uninstall only the nano package we can use the following command:

sudo dnf remove nano

nano Package Contents on Fedora 34

/etc/nanorc
/usr/bin/nano
/usr/bin/rnano
/usr/lib/.build-id
/usr/lib/.build-id/79
/usr/lib/.build-id/79/310d1fa1658e172e83bc8bcfdf1ab96319316d
/usr/share/doc/nano
/usr/share/doc/nano/AUTHORS
/usr/share/doc/nano/COPYING
/usr/share/doc/nano/ChangeLog
/usr/share/doc/nano/INSTALL
/usr/share/doc/nano/NEWS
/usr/share/doc/nano/README
/usr/share/doc/nano/THANKS
/usr/share/doc/nano/TODO
/usr/share/doc/nano/faq.html
/usr/share/doc/nano/nano.html
/usr/share/doc/nano/sample.nanorc
/usr/share/info/nano.info.gz
/usr/share/locale/bg/LC_MESSAGES/nano.mo
/usr/share/locale/ca/LC_MESSAGES/nano.mo
/usr/share/locale/cs/LC_MESSAGES/nano.mo
/usr/share/locale/da/LC_MESSAGES/nano.mo
/usr/share/locale/de/LC_MESSAGES/nano.mo
/usr/share/locale/eo/LC_MESSAGES/nano.mo
/usr/share/locale/es/LC_MESSAGES/nano.mo
/usr/share/locale/eu/LC_MESSAGES/nano.mo
/usr/share/locale/fi/LC_MESSAGES/nano.mo
/usr/share/locale/fr/LC_MESSAGES/nano.mo
/usr/share/locale/ga/LC_MESSAGES/nano.mo
/usr/share/locale/gl/LC_MESSAGES/nano.mo
/usr/share/locale/hr/LC_MESSAGES/nano.mo
/usr/share/locale/hu/LC_MESSAGES/nano.mo
/usr/share/locale/id/LC_MESSAGES/nano.mo
/usr/share/locale/it/LC_MESSAGES/nano.mo
/usr/share/locale/ja/LC_MESSAGES/nano.mo
/usr/share/locale/ko/LC_MESSAGES/nano.mo
/usr/share/locale/ms/LC_MESSAGES/nano.mo
/usr/share/locale/nb/LC_MESSAGES/nano.mo
/usr/share/locale/nl/LC_MESSAGES/nano.mo
/usr/share/locale/nn/LC_MESSAGES/nano.mo
/usr/share/locale/pl/LC_MESSAGES/nano.mo
/usr/share/locale/pt/LC_MESSAGES/nano.mo
/usr/share/locale/pt_BR/LC_MESSAGES/nano.mo
/usr/share/locale/ro/LC_MESSAGES/nano.mo
/usr/share/locale/ru/LC_MESSAGES/nano.mo
/usr/share/locale/sl/LC_MESSAGES/nano.mo
/usr/share/locale/sr/LC_MESSAGES/nano.mo
/usr/share/locale/sv/LC_MESSAGES/nano.mo
/usr/share/locale/tr/LC_MESSAGES/nano.mo
/usr/share/locale/uk/LC_MESSAGES/nano.mo
/usr/share/locale/vi/LC_MESSAGES/nano.mo
/usr/share/locale/zh_CN/LC_MESSAGES/nano.mo
/usr/share/locale/zh_TW/LC_MESSAGES/nano.mo
/usr/share/man/man1/nano.1.gz
/usr/share/man/man1/rnano.1.gz
/usr/share/man/man5/nanorc.5.gz
/usr/share/nano
/usr/share/nano/ada.nanorc
/usr/share/nano/asm.nanorc
/usr/share/nano/autoconf.nanorc
/usr/share/nano/awk.nanorc
/usr/share/nano/c.nanorc
/usr/share/nano/changelog.nanorc
/usr/share/nano/cmake.nanorc
/usr/share/nano/css.nanorc
/usr/share/nano/debian.nanorc
/usr/share/nano/default.nanorc
/usr/share/nano/elisp.nanorc
/usr/share/nano/email.nanorc
/usr/share/nano/fortran.nanorc
/usr/share/nano/gentoo.nanorc
/usr/share/nano/go.nanorc
/usr/share/nano/groff.nanorc
/usr/share/nano/guile.nanorc
/usr/share/nano/haskell.nanorc
/usr/share/nano/html.nanorc
/usr/share/nano/java.nanorc
/usr/share/nano/javascript.nanorc
/usr/share/nano/json.nanorc
/usr/share/nano/lua.nanorc
/usr/share/nano/makefile.nanorc
/usr/share/nano/man.nanorc
/usr/share/nano/markdown.nanorc
/usr/share/nano/nanohelp.nanorc
/usr/share/nano/nanorc.nanorc
/usr/share/nano/nftables.nanorc
/usr/share/nano/objc.nanorc
/usr/share/nano/ocaml.nanorc
/usr/share/nano/patch.nanorc
/usr/share/nano/perl.nanorc
/usr/share/nano/php.nanorc
/usr/share/nano/po.nanorc
/usr/share/nano/povray.nanorc
/usr/share/nano/python.nanorc
/usr/share/nano/ruby.nanorc
/usr/share/nano/rust.nanorc
/usr/share/nano/sh.nanorc
/usr/share/nano/spec.nanorc
/usr/share/nano/sql.nanorc
/usr/share/nano/tcl.nanorc
/usr/share/nano/tex.nanorc
/usr/share/nano/texinfo.nanorc
/usr/share/nano/xml.nanorc
/etc/nanorc
/usr/bin/nano
/usr/bin/rnano
/usr/lib/.build-id
/usr/lib/.build-id/de
/usr/lib/.build-id/de/7a42615ab762ec56169e4ec56e925aee7b035f
/usr/share/doc/nano
/usr/share/doc/nano/AUTHORS
/usr/share/doc/nano/COPYING
/usr/share/doc/nano/ChangeLog
/usr/share/doc/nano/INSTALL
/usr/share/doc/nano/NEWS
/usr/share/doc/nano/README
/usr/share/doc/nano/THANKS
/usr/share/doc/nano/TODO
/usr/share/doc/nano/faq.html
/usr/share/doc/nano/nano.html
/usr/share/doc/nano/sample.nanorc
/usr/share/info/nano.info.gz
/usr/share/locale/bg/LC_MESSAGES/nano.mo
/usr/share/locale/ca/LC_MESSAGES/nano.mo
/usr/share/locale/cs/LC_MESSAGES/nano.mo
/usr/share/locale/da/LC_MESSAGES/nano.mo
/usr/share/locale/de/LC_MESSAGES/nano.mo
/usr/share/locale/eo/LC_MESSAGES/nano.mo
/usr/share/locale/es/LC_MESSAGES/nano.mo
/usr/share/locale/eu/LC_MESSAGES/nano.mo
/usr/share/locale/fi/LC_MESSAGES/nano.mo
/usr/share/locale/fr/LC_MESSAGES/nano.mo
/usr/share/locale/ga/LC_MESSAGES/nano.mo
/usr/share/locale/gl/LC_MESSAGES/nano.mo
/usr/share/locale/hr/LC_MESSAGES/nano.mo
/usr/share/locale/hu/LC_MESSAGES/nano.mo
/usr/share/locale/id/LC_MESSAGES/nano.mo
/usr/share/locale/is/LC_MESSAGES/nano.mo
/usr/share/locale/it/LC_MESSAGES/nano.mo
/usr/share/locale/ja/LC_MESSAGES/nano.mo
/usr/share/locale/ko/LC_MESSAGES/nano.mo
/usr/share/locale/ms/LC_MESSAGES/nano.mo
/usr/share/locale/nb/LC_MESSAGES/nano.mo
/usr/share/locale/nl/LC_MESSAGES/nano.mo
/usr/share/locale/nn/LC_MESSAGES/nano.mo
/usr/share/locale/pl/LC_MESSAGES/nano.mo
/usr/share/locale/pt/LC_MESSAGES/nano.mo
/usr/share/locale/pt_BR/LC_MESSAGES/nano.mo
/usr/share/locale/ro/LC_MESSAGES/nano.mo
/usr/share/locale/ru/LC_MESSAGES/nano.mo
/usr/share/locale/sk/LC_MESSAGES/nano.mo
/usr/share/locale/sl/LC_MESSAGES/nano.mo
/usr/share/locale/sr/LC_MESSAGES/nano.mo
/usr/share/locale/sv/LC_MESSAGES/nano.mo
/usr/share/locale/tr/LC_MESSAGES/nano.mo
/usr/share/locale/uk/LC_MESSAGES/nano.mo
/usr/share/locale/vi/LC_MESSAGES/nano.mo
/usr/share/locale/zh_CN/LC_MESSAGES/nano.mo
/usr/share/locale/zh_TW/LC_MESSAGES/nano.mo
/usr/share/man/man1/nano.1.gz
/usr/share/man/man1/rnano.1.gz
/usr/share/man/man5/nanorc.5.gz
/usr/share/nano
/usr/share/nano/ada.nanorc
/usr/share/nano/asm.nanorc
/usr/share/nano/autoconf.nanorc
/usr/share/nano/awk.nanorc
/usr/share/nano/c.nanorc
/usr/share/nano/changelog.nanorc
/usr/share/nano/cmake.nanorc
/usr/share/nano/css.nanorc
/usr/share/nano/debian.nanorc
/usr/share/nano/default.nanorc
/usr/share/nano/elisp.nanorc
/usr/share/nano/email.nanorc
/usr/share/nano/fortran.nanorc
/usr/share/nano/gentoo.nanorc
/usr/share/nano/go.nanorc
/usr/share/nano/groff.nanorc
/usr/share/nano/guile.nanorc
/usr/share/nano/haskell.nanorc
/usr/share/nano/html.nanorc
/usr/share/nano/java.nanorc
/usr/share/nano/javascript.nanorc
/usr/share/nano/json.nanorc
/usr/share/nano/lua.nanorc
/usr/share/nano/makefile.nanorc
/usr/share/nano/man.nanorc
/usr/share/nano/markdown.nanorc
/usr/share/nano/nanohelp.nanorc
/usr/share/nano/nanorc.nanorc
/usr/share/nano/nftables.nanorc
/usr/share/nano/objc.nanorc
/usr/share/nano/ocaml.nanorc
/usr/share/nano/patch.nanorc
/usr/share/nano/perl.nanorc
/usr/share/nano/php.nanorc
/usr/share/nano/po.nanorc
/usr/share/nano/povray.nanorc
/usr/share/nano/python.nanorc
/usr/share/nano/ruby.nanorc
/usr/share/nano/rust.nanorc
/usr/share/nano/sh.nanorc
/usr/share/nano/spec.nanorc
/usr/share/nano/sql.nanorc
/usr/share/nano/tcl.nanorc
/usr/share/nano/tex.nanorc
/usr/share/nano/texinfo.nanorc
/usr/share/nano/xml.nanorc

References

Summary

In this tutorial we learn how to install nano on Fedora 34 using yum and dnf.