How To Install nnn on Fedora 34

nnn is The missing terminal file browser for X

Introduction

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

What is nnn

nnn is probably the fastest and most resource-sensitive (with all its capabilities) file browser you have ever used. It’s extremely flexible too - integrates with your DE and favourite GUI utilities, works with the desktop opener, supports bookmarks, has smart navigation shortcuts, navigate-as-you-type mode, disk usage analyzer mode, comprehensive file details and much more. nnn was initially forked from noice but is significantly different today. Cool things you can do with nnn - open any file in the default desktop application or a custom one - navigate-as-you-type (search-as-you-type enabled even on directory switch) - check disk usage with number of files in current directory tree - run desktop search utility (gnome-search-tool or catfish) in any directory - copy absolute file paths to clipboard, spawn a terminal and use the paths - navigate instantly using shortcuts like ~, -, & or handy bookmarks - use cd ….. at chdir prompt to go to a parent directory - detailed file stats, media info, list and extract archives - pin a directory you may need to revisit and jump to it anytime - lock the current terminal after a specified idle time - change directory on exit

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

Install nnn 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 nnn using dnf by running the following command:

sudo dnf -y install nnn

Install nnn 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 nnn using yum by running the following command:

sudo yum -y install nnn

How To Uninstall nnn on Fedora 34

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

sudo dnf remove nnn

nnn Package Contents on Fedora 34

/usr/bin/nnn
/usr/lib/.build-id
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/e0566e09beb7a8cb96af354c879c4369a7ee27
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/nnn-completion.bash
/usr/share/doc/nnn
/usr/share/doc/nnn/CHANGELOG
/usr/share/doc/nnn/README.md
/usr/share/fish/vendor_functions.d
/usr/share/fish/vendor_functions.d/nnn.fish
/usr/share/licenses/nnn
/usr/share/licenses/nnn/LICENSE
/usr/share/man/man1/nnn.1.gz
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_nnn
/usr/bin/nnn
/usr/lib/.build-id
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/379760587e1469d462291ccaf8fd1797c8f12d
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/nnn-completion.bash
/usr/share/doc/nnn
/usr/share/doc/nnn/CHANGELOG
/usr/share/doc/nnn/README.md
/usr/share/fish/vendor_functions.d
/usr/share/fish/vendor_functions.d/nnn.fish
/usr/share/licenses/nnn
/usr/share/licenses/nnn/LICENSE
/usr/share/man/man1/nnn.1.gz
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_nnn

References

Summary

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