less command not found. Install less command on Fedora
Install less command on Fedora Server
Got the above error on my Fedora server. Follow the below steps to install less package on Fedora Server.
1. Log into Fedora server as ‘root’ user
2. Install less package using dnf command or yum command
# dnf install less
OR
# yum install less
3. Enter ‘y’ and press enter, if yum ask for confirmation while installing
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
less x86_64 551-2.fc31 fedora 154 k
Transaction Summary
===================================================================================================
Install 1 Package
Total download size: 154 k
Installed size: 344 k
Is this ok [y/N]: y
4. Run the following command to verify installation by checking less version
less 458 (POSIX regular expressions)
How to Download and install less rpm on Fedora server
1. Log into Fedora server as ‘root’ user or as sudo user
2. Download less package from fedoraproject.org website using wget command
3. Install less package using rpm command or yum command
Verifying… ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:less-551-2.fc31 ################################# [100%]
You must manually install the required dependencies for less package, if you are installing using rpm command.
Yum command will install less package and the required dependencies for less package.