How To Install less on CentOS 7
Introduction
In this tutorial we learn how to install less
on CentOS 7.
What is less
The less utility is a text file browser that resembles more, but has more capabilities. Less allows you to move backwards in the file as well as forwards. Since less doesn’t have to read the entire input file before it starts, less starts up more quickly than text editors (for example, vi). You should install less because it is a basic utility for viewing text files, and you’ll use it frequently.
We can use yum
or dnf
to install less
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install less.
Install less on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install less
using yum
by running the following command:
Install less 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.
After updating yum database, We can install less
using dnf
by running the following command:
How To Uninstall less on CentOS 7
To uninstall only the less
package we can use the following command:
References
Summary
In this tutorial we learn how to install less
on CentOS 7 using yum
and dnf
.