How To Install tarantool on CentOS 8

tarantool is In-Memory Database

Introduction

In this tutorial we learn how to install tarantool on CentOS 8.

What is tarantool

Tarantool is an open-source database that can store everything in RAM. You can use it as a cache with on-disk persistence. Tarantool is able to process up to 1 million RPS and supports SQL and secondary index searching. In Tarantool, you can run your code at the same place where your data is. That speeds up all the operations. Apply any business logic in Lua programming language. Get rid of the outdated database records. Synchronize with other data sources. Implement HTTP-service. This package provides the server daemon and admin tools.

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

Install tarantool 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 tarantool using dnf by running the following command:

sudo dnf -y install tarantool

Install tarantool 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 tarantool using yum by running the following command:

sudo yum -y install tarantool

How To Uninstall tarantool on CentOS 8

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

sudo dnf remove tarantool

tarantool Package Contents on CentOS 8

/etc/logrotate.d/tarantool
/etc/sysconfig/tarantool
/etc/tarantool
/etc/tarantool/instances.available
/etc/tarantool/instances.available/example.lua
/usr/bin/tarantool
/usr/bin/tarantoolctl
/usr/lib/.build-id
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/0e6319d8b4d1c8467cbd84204e0da9f3c16c99
/usr/lib/systemd/system/[email protected]
/usr/lib/tmpfiles.d/tarantool.conf
/usr/lib64/tarantool
/usr/share/doc/tarantool
/usr/share/doc/tarantool/README.md
/usr/share/licenses/tarantool
/usr/share/licenses/tarantool/AUTHORS
/usr/share/licenses/tarantool/LICENSE
/usr/share/man/man1/tarantool.1.gz
/usr/share/man/man1/tarantoolctl.1.gz
/usr/share/tarantool
/usr/share/tarantool/luarocks
/usr/share/tarantool/luarocks/admin
/usr/share/tarantool/luarocks/admin/cache.lua
/usr/share/tarantool/luarocks/admin/cmd
/usr/share/tarantool/luarocks/admin/cmd/add.lua
/usr/share/tarantool/luarocks/admin/cmd/make_manifest.lua
/usr/share/tarantool/luarocks/admin/cmd/refresh_cache.lua
/usr/share/tarantool/luarocks/admin/cmd/remove.lua
/usr/share/tarantool/luarocks/admin/index.lua
/usr/share/tarantool/luarocks/build
/usr/share/tarantool/luarocks/build.lua
/usr/share/tarantool/luarocks/build/builtin.lua
/usr/share/tarantool/luarocks/build/cmake.lua
/usr/share/tarantool/luarocks/build/command.lua
/usr/share/tarantool/luarocks/build/make.lua
/usr/share/tarantool/luarocks/cmd
/usr/share/tarantool/luarocks/cmd.lua
/usr/share/tarantool/luarocks/cmd/build.lua
/usr/share/tarantool/luarocks/cmd/config.lua
/usr/share/tarantool/luarocks/cmd/doc.lua
/usr/share/tarantool/luarocks/cmd/download.lua
/usr/share/tarantool/luarocks/cmd/help.lua
/usr/share/tarantool/luarocks/cmd/init.lua
/usr/share/tarantool/luarocks/cmd/install.lua
/usr/share/tarantool/luarocks/cmd/lint.lua
/usr/share/tarantool/luarocks/cmd/list.lua
/usr/share/tarantool/luarocks/cmd/make.lua
/usr/share/tarantool/luarocks/cmd/new_version.lua
/usr/share/tarantool/luarocks/cmd/pack.lua
/usr/share/tarantool/luarocks/cmd/path.lua
/usr/share/tarantool/luarocks/cmd/purge.lua
/usr/share/tarantool/luarocks/cmd/remove.lua
/usr/share/tarantool/luarocks/cmd/search.lua
/usr/share/tarantool/luarocks/cmd/show.lua
/usr/share/tarantool/luarocks/cmd/test.lua
/usr/share/tarantool/luarocks/cmd/unpack.lua
/usr/share/tarantool/luarocks/cmd/upload.lua
/usr/share/tarantool/luarocks/cmd/which.lua
/usr/share/tarantool/luarocks/cmd/write_rockspec.lua
/usr/share/tarantool/luarocks/core
/usr/share/tarantool/luarocks/core/cfg.lua
/usr/share/tarantool/luarocks/core/dir.lua
/usr/share/tarantool/luarocks/core/hardcoded.lua
/usr/share/tarantool/luarocks/core/manif.lua
/usr/share/tarantool/luarocks/core/path.lua
/usr/share/tarantool/luarocks/core/persist.lua
/usr/share/tarantool/luarocks/core/sysdetect.lua
/usr/share/tarantool/luarocks/core/util.lua
/usr/share/tarantool/luarocks/core/vers.lua
/usr/share/tarantool/luarocks/deps.lua
/usr/share/tarantool/luarocks/dir.lua
/usr/share/tarantool/luarocks/download.lua
/usr/share/tarantool/luarocks/fetch
/usr/share/tarantool/luarocks/fetch.lua
/usr/share/tarantool/luarocks/fetch/cvs.lua
/usr/share/tarantool/luarocks/fetch/git.lua
/usr/share/tarantool/luarocks/fetch/git_file.lua
/usr/share/tarantool/luarocks/fetch/git_http.lua
/usr/share/tarantool/luarocks/fetch/git_https.lua
/usr/share/tarantool/luarocks/fetch/git_ssh.lua
/usr/share/tarantool/luarocks/fetch/hg.lua
/usr/share/tarantool/luarocks/fetch/hg_http.lua
/usr/share/tarantool/luarocks/fetch/hg_https.lua
/usr/share/tarantool/luarocks/fetch/hg_ssh.lua
/usr/share/tarantool/luarocks/fetch/sscm.lua
/usr/share/tarantool/luarocks/fetch/svn.lua
/usr/share/tarantool/luarocks/fs
/usr/share/tarantool/luarocks/fs.lua
/usr/share/tarantool/luarocks/fs/lua.lua
/usr/share/tarantool/luarocks/fs/tools.lua
/usr/share/tarantool/luarocks/fs/unix
/usr/share/tarantool/luarocks/fs/unix.lua
/usr/share/tarantool/luarocks/fs/unix/tools.lua
/usr/share/tarantool/luarocks/fs/win32
/usr/share/tarantool/luarocks/fs/win32.lua
/usr/share/tarantool/luarocks/fs/win32/tools.lua
/usr/share/tarantool/luarocks/fun.lua
/usr/share/tarantool/luarocks/loader.lua
/usr/share/tarantool/luarocks/manif
/usr/share/tarantool/luarocks/manif.lua
/usr/share/tarantool/luarocks/manif/writer.lua
/usr/share/tarantool/luarocks/pack.lua
/usr/share/tarantool/luarocks/path.lua
/usr/share/tarantool/luarocks/persist.lua
/usr/share/tarantool/luarocks/queries.lua
/usr/share/tarantool/luarocks/remove.lua
/usr/share/tarantool/luarocks/repos.lua
/usr/share/tarantool/luarocks/require.lua
/usr/share/tarantool/luarocks/results.lua
/usr/share/tarantool/luarocks/rockspecs.lua
/usr/share/tarantool/luarocks/search.lua
/usr/share/tarantool/luarocks/signing.lua
/usr/share/tarantool/luarocks/test
/usr/share/tarantool/luarocks/test.lua
/usr/share/tarantool/luarocks/test/busted.lua
/usr/share/tarantool/luarocks/test/command.lua
/usr/share/tarantool/luarocks/tools
/usr/share/tarantool/luarocks/tools/patch.lua
/usr/share/tarantool/luarocks/tools/tar.lua
/usr/share/tarantool/luarocks/tools/zip.lua
/usr/share/tarantool/luarocks/type
/usr/share/tarantool/luarocks/type/manifest.lua
/usr/share/tarantool/luarocks/type/rockspec.lua
/usr/share/tarantool/luarocks/type_check.lua
/usr/share/tarantool/luarocks/upload
/usr/share/tarantool/luarocks/upload/api.lua
/usr/share/tarantool/luarocks/upload/multipart.lua
/usr/share/tarantool/luarocks/util.lua
/var/lib/tarantool
/var/log/tarantool

References

Summary

In this tutorial we learn how to install tarantool on CentOS 8 using yum and dnf.