How To Install tokyocabinet on CentOS 7

In this tutorial we learn how to install tokyocabinet on CentOS 7. tokyocabinet is A modern implementation of a DBM

Introduction

In this tutorial we learn how to install tokyocabinet on CentOS 7.

What is tokyocabinet

Tokyo Cabinet is a library of routines for managing a database. It is the successor of QDBM. Tokyo Cabinet runs very fast. For example, the time required to store 1 million records is 1.5 seconds for a hash database and 2.2 seconds for a B+ tree database. Moreover, the database size is very small and can be up to 8EB. Furthermore, the scalability of Tokyo Cabinet is great. Tokyo Cabinet is a library of routines for managing a database. It is the successor of QDBM. Tokyo Cabinet runs very fast. For example, the time required to store 1 million records is 1.5 seconds for a hash database and 2.2 seconds for a B+ tree database. Moreover, the database size is very small and can be up to 8EB. Furthermore, the scalability of Tokyo Cabinet is great.

We can use yum or dnf to install tokyocabinet on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install tokyocabinet.

Install tokyocabinet on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install tokyocabinet using yum by running the following command:

sudo yum -y install tokyocabinet

Install tokyocabinet on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install tokyocabinet using dnf by running the following command:

sudo dnf -y install tokyocabinet

How To Uninstall tokyocabinet on CentOS 7

To uninstall only the tokyocabinet package we can use the following command:

sudo dnf remove tokyocabinet

References

Summary

In this tutorial we learn how to install tokyocabinet on CentOS 7 using yum and dnf.