How To Install nnn on Rocky Linux 8

In this tutorial we learn how to install nnn on Rocky Linux 8. nnn is The missing terminal file browser for X

Introduction

In this tutorial we learn how to install nnn on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install nnn.

Install nnn on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install nnn

Install nnn on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove nnn

nnn Package Contents on Rocky Linux 8

/usr/bin/nnn
/usr/lib/.build-id
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/33938704e408c5c7891277f681f8dbdfe3cc8d
/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 Rocky Linux 8 using yum and dnf.