bak2db Command not found – CentOS 7

/usr/bin/bak2db command not found

 

Do the below steps to fix the error “/usr/bin/bak2db command not found” on your CentOS 7 server.

1. Log into your centos 7 server via SSH as root user

2. Run the command ‘rpm -qa | grep 389-ds-base’ to check whether 389-ds-base is installed

3. Install 389-ds-base package using yum : ‘yum install 389-ds-base’

4. Run the below command to verify


# bak2db
Usage: bak2db archivedir [-Z serverID] [-n backend] [-q] [-V] [-h]

 

 

[root@centos7 /]# yum install 389-ds-base

Installed:
389-ds-base.x86_64 0:1.3.10.2-12.el7_9

Dependency Installed:
389-ds-base-libs.x86_64 0:1.3.10.2-12.el7_9 GeoIP.x86_64 0:1.5.0-14.el7
audit-libs-python.x86_64 0:2.8.5-4.el7 bind-libs.x86_64 32:9.11.4-26.P2.el7_9.5
bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.5 bind-utils.x86_64 32:9.11.4-26.P2.el7_9.5
checkpolicy.x86_64 0:2.5-8.el7 cyrus-sasl-gssapi.x86_64 0:2.1.26-23.el7
cyrus-sasl-md5.x86_64 0:2.1.26-23.el7 cyrus-sasl-plain.x86_64 0:2.1.26-23.el7
gperftools-libs.x86_64 0:2.6.1-1.el7 groff-base.x86_64 0:1.22.2-8.el7
libcgroup.x86_64 0:0.41-21.el7 libevent.x86_64 0:2.0.21-4.el7
libicu.x86_64 0:50.2-4.el7_7 libselinux-python.x86_64 0:2.5-15.el7
libselinux-utils.x86_64 0:2.5-15.el7 libsemanage-python.x86_64 0:2.5-14.el7
openldap-clients.x86_64 0:2.4.44-23.el7_9 perl.x86_64 4:5.16.3-299.el7_9
perl-Archive-Tar.noarch 0:1.92-3.el7 perl-Carp.noarch 0:1.26-244.el7
perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7
perl-DB_File.x86_64 0:1.830-6.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7
perl-Encode.x86_64 0:2.51-7.el7 perl-Exporter.noarch 0:5.68-3.el7
perl-File-Path.noarch 0:2.09-2.el7 perl-File-Temp.noarch 0:0.23.01-3.el7
perl-Filter.x86_64 0:1.49-3.el7 perl-Getopt-Long.noarch 0:2.40-3.el7
perl-HTTP-Tiny.noarch 0:0.033-3.el7 perl-IO-Compress.noarch 0:2.061-2.el7
perl-IO-Zlib.noarch 1:1.10-299.el7_9 perl-Mozilla-LDAP.x86_64 0:1.5.3-12.el7
perl-NetAddr-IP.x86_64 0:4.069-3.el7 perl-Package-Constants.noarch 1:0.02-299.el7_9
perl-PathTools.x86_64 0:3.40-5.el7 perl-Pod-Escapes.noarch 1:1.04-299.el7_9
perl-Pod-Perldoc.noarch 0:3.20-4.el7 perl-Pod-Simple.noarch 1:3.28-4.el7
perl-Pod-Usage.noarch 0:1.63-3.el7 perl-Scalar-List-Utils.x86_64 0:1.27-248.el7
perl-Socket.x86_64 0:2.010-5.el7 perl-Storable.x86_64 0:2.45-3.el7
perl-Text-ParseWords.noarch 0:3.29-4.el7 perl-Time-HiRes.x86_64 4:1.9725-3.el7
perl-Time-Local.noarch 0:1.2300-2.el7 perl-constant.noarch 0:1.27-2.el7
perl-libs.x86_64 4:5.16.3-299.el7_9 perl-macros.x86_64 4:5.16.3-299.el7_9
perl-parent.noarch 1:0.225-244.el7 perl-podlators.noarch 0:2.5.1-3.el7
perl-threads.x86_64 0:1.87-4.el7 perl-threads-shared.x86_64 0:1.43-6.el7
policycoreutils.x86_64 0:2.5-34.el7 policycoreutils-python.x86_64 0:2.5-34.el7
python-IPy.noarch 0:0.75-6.el7 python-ldap.x86_64 0:2.4.15-2.el7
selinux-policy.noarch 0:3.13.1-268.el7_9.2 setools-libs.x86_64 0:3.3.8-4.el7
svrcore.x86_64 0:4.1.3-2.el7