• Contact Us
  • copyright
  • About Us
  • Privacy Policy
  • Devops
  • Linux
Globedrill

less command not found. Install less command on Fedora

Linux/17 May, 20/569/0
Linux

Install less command on Fedora Server

 

bash: less: command not found.

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
 

# dnf install less
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 -V
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
 

wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/31/Everything/x86_64/os/Packages/l/less-551-2.fc31.x86_64.rpm

 
3. Install less package using rpm command or yum command

 

# rpm -ivh less-551-2.fc31.x86_64.rpm
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 install less-551-2.fc31.x86_64.rpm

 
Yum command will install less package and the required dependencies for less package.

Leave a Reply Cancel reply

.

About Us

Globedrill.com is a website that publishes articles related to Linux and Devops. Globedrill was started on April 2016.

Contact Us

Email : globedrill.c@gmail.com

Globedrill

Copyright © 2016 Globedrill. All Rights Reserved. The content in this website is copyrighted to Globedrill.com and may not be republished either online or offline.

  • About Us
  • Privacy Policy
  • Contact Us
  • copyright