How To Install nnn on CentOS 7

In this tutorial we learn how to install nnn on CentOS 7. nnn is The missing terminal file browser for X

Introduction

In this tutorial we learn how to install nnn on CentOS 7.

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

Install nnn on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install nnn

Install nnn on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install nnn

How To Uninstall nnn on CentOS 7

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

sudo dnf remove nnn

References

Summary

In this tutorial we learn how to install nnn on CentOS 7 using yum and dnf.