How To Install less on Fedora 34
Introduction
In this tutorial we learn how to install less
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install less.
Install less 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 less
using dnf
by running the following command:
sudo dnf -y install less
Install less 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 less
using yum
by running the following command:
sudo yum -y install less
How To Uninstall less on Fedora 34
To uninstall only the less
package we can use the following command:
sudo dnf remove less
less Package Contents on Fedora 34
/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/10
/usr/lib/.build-id/10/4bf74968f22fe9eecad1b30a55ce0f3734724d
/usr/lib/.build-id/25
/usr/lib/.build-id/25/66b64177dc2325731fa1f557ed68edfa856b01
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/a0da297098fd5e825c47892c8b5082a3221e9d
/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
/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/9c
/usr/lib/.build-id/9c/4e57a5545bffdedacaa61feacf15171fe40db4
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/4f5cb6898d04be32780732e0ed628014e56fcc
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/2884b382bc615ed33c85cf44f521a63ada632b
/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 34 using yum and dnf.