How To Install less on Fedora 36

In this tutorial we learn how to install less in Fedora 36. less is A text file browser similar to more, but better

Introduction

In this tutorial we learn how to install less on Fedora 36.

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

Install less on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install less

Install less on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install less

How To Uninstall less on Fedora 36

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

sudo dnf remove less

less Package Contents on Fedora 36

/etc/profile.d/less.csh
/etc/profile.d/less.sh
/usr/bin/less
/usr/bin/lessecho
/usr/bin/lesskey
/usr/bin/lesspipe.sh
/usr/lib/.build-id
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/c23c934862f8cc9c7437d2ea9a4099246be834
/usr/lib/.build-id/47
/usr/lib/.build-id/47/16c50f5bb20dce82262a80218b7643c3fa591d
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/a3af419825bfe1f79855f19dc8c6b456251678
/usr/share/doc/less
/usr/share/doc/less/INSTALL
/usr/share/doc/less/NEWS
/usr/share/doc/less/README
/usr/share/licenses/less
/usr/share/licenses/less/COPYING
/usr/share/licenses/less/LICENSE
/usr/share/man/man1/less.1.gz
/usr/share/man/man1/lessecho.1.gz
/usr/share/man/man1/lesskey.1.gz

References

Summary

In this tutorial we learn how to install less on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).