How To Install knot on CentOS 8
Introduction
In this tutorial we learn how to install knot
on CentOS 8.
What is knot
Knot DNS is a high-performance authoritative DNS server implementation.
We can use yum
or dnf
to install knot
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install knot.
Install knot on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install knot
using dnf
by running the following command:
sudo dnf -y install knot
Install knot on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install knot
using yum
by running the following command:
sudo yum -y install knot
How To Uninstall knot on CentOS 8
To uninstall only the knot
package we can use the following command:
sudo dnf remove knot
knot Package Contents on CentOS 8
/etc/knot
/etc/knot/knot.conf
/run/knot
/usr/bin/kzonecheck
/usr/bin/kzonesign
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/48553f6194514cd77f56698211bc97b8e17583
/usr/lib/.build-id/16/526db426336b5b7f1fc77be9f146bd3c15e1f9
/usr/lib/.build-id/20
/usr/lib/.build-id/20/47a3d9bc1a5278d3749b291fb2ab356691e4ae
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/675a9f85586aefe37726bcf2eccf22cd98dbd7
/usr/lib/.build-id/44
/usr/lib/.build-id/44/75d4130576b86e38664b971b8f52bd69d7fe95
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/7d8eac2b016dc30ee03fd3c0b994bb28ab0e6f
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/7a58da82194e646af9567ff757d273307e80ba
/usr/lib/systemd/system/knot.service
/usr/lib/tmpfiles.d/knot.conf
/usr/lib64/knot
/usr/lib64/knot/modules-3.0
/usr/sbin/kcatalogprint
/usr/sbin/keymgr
/usr/sbin/kjournalprint
/usr/sbin/knotc
/usr/sbin/knotd
/usr/share/doc/knot
/usr/share/doc/knot/NEWS
/usr/share/doc/knot/README.md
/usr/share/doc/knot/samples
/usr/share/doc/knot/samples/example.com.zone
/usr/share/licenses/knot
/usr/share/licenses/knot/COPYING
/usr/share/man/man1/kzonecheck.1.gz
/usr/share/man/man1/kzonesign.1.gz
/usr/share/man/man5/knot.conf.5.gz
/usr/share/man/man8/kcatalogprint.8.gz
/usr/share/man/man8/keymgr.8.gz
/usr/share/man/man8/kjournalprint.8.gz
/usr/share/man/man8/knotc.8.gz
/usr/share/man/man8/knotd.8.gz
/var/lib/knot
References
Summary
In this tutorial we learn how to install knot
on CentOS 8 using yum and dnf.