/usr/bin/lexgrog No such file or directory

bash: /usr/bin/lexgrog: No such file or directory

 

Got the below error on my CentOS 8 server. On CentOS servers, lexgrog command is provided by man-db package and it might not be installed on your server.
 

bash: /usr/bin/lexgrog: No such file or directory

 
Follow the below steps to install man-db package.
 

Step 1 : Log into CentOS 8 server as ‘root’ user

Step 2 : Run the command ‘rpm -qa | grep -i man-db’ to check whether man-db is already installed or not

 

[root@server /]# rpm -qa | grep -i man-db
[root@server /]#

 
man-db package is not installed on the above server. If package is already installed, the error might be due to incorrect path of the binary.
 

Steps 3 : Run ‘yum install man-db’ to install man-db package

 

yum install man-db
Failed to set locale, defaulting to C.UTF-8
CentOS-8 – AppStream 1.0 kB/s | 4.3 kB 00:04
CentOS-8 – Base 619 B/s | 3.9 kB 00:06
CentOS-8 – Extras 546 B/s | 1.5 kB 00:02
CentOS-8 – Extras 1.2 kB/s | 8.6 kB 00:06
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
man-db x86_64 2.7.6.1-17.el8 BaseOS 887 k
Installing dependencies:
groff-base x86_64 1.22.3-18.el8 BaseOS 1.0 M
libpipeline x86_64 1.5.0-2.el8 BaseOS 54 k

Transaction Summary
===================================================================================================
Install 3 Packages

Total download size: 1.9 M
Installed size: 6.1 M
Is this ok [y/N]: y

 

Step 4 : Enter ‘y’ and press enter, if yum ask for confirmation while installing the package

 
 

How to Download and install man-db rpm

 

Steps 1 : Log into CentOS 8 server via ssh as ‘root’ user

Steps 2 : Download man-db package from centos.org website using wget command

 

wget http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/man-db-2.7.6.1-17.el8.x86_64.rpm

 

Steps 3 : Run the command ‘rpm -Uvh man-db-2.7.6.1-17.el8.x86_64.rpm’ to install man-db rpm

 

# rpm -Uvh man-db-2.7.6.1-17.el8.x86_64.rpm

 
NOTE: You must install the required dependencies before installing the man-db package. The below dependencies aree required:

groff-base
zlib
libpipeline
gzip
 

Step 4 : Run the following command to verify installation by checking lexgrog version

 

[root@linux]# lexgrog -V
lexgrog 2.7.6.1

[root@linux]# lexgrog –version
lexgrog 2.7.6.1