How To Install sysbench on Fedora 34
Introduction
In this tutorial we learn how to install sysbench
on Fedora 34.
What is sysbench
SysBench is a modular, cross-platform and multi-threaded benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load. The idea of this benchmark suite is to quickly get an impression about system performance without setting up complex database benchmarks or even without installing a database at all. Current features allow to test the following system parameters - file I/O performance - scheduler performance - memory allocation and transfer speed - POSIX threads implementation performance - database server performance (OLTP benchmark) Primarily written for MySQL server benchmarking, SysBench will be further extended to support multiple database backends, distributed benchmarks and third-party plug-in modules.
We can use yum
or dnf
to install sysbench
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install sysbench.
Install sysbench on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install sysbench
using dnf
by running the following command:
sudo dnf -y install sysbench
Install sysbench on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install sysbench
using yum
by running the following command:
sudo yum -y install sysbench
How To Uninstall sysbench on Fedora 34
To uninstall only the sysbench
package we can use the following command:
sudo dnf remove sysbench
sysbench Package Contents on Fedora 34
/usr/bin/sysbench
/usr/lib/.build-id
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/05814bca69b0a07dda42d410216917823c2314
/usr/share/doc/sysbench
/usr/share/doc/sysbench/ChangeLog
/usr/share/doc/sysbench/README.md
/usr/share/doc/sysbench/manual.html
/usr/share/licenses/sysbench
/usr/share/licenses/sysbench/COPYING
/usr/share/sysbench
/usr/share/sysbench/bulk_insert.lua
/usr/share/sysbench/oltp_common.lua
/usr/share/sysbench/oltp_delete.lua
/usr/share/sysbench/oltp_insert.lua
/usr/share/sysbench/oltp_point_select.lua
/usr/share/sysbench/oltp_read_only.lua
/usr/share/sysbench/oltp_read_write.lua
/usr/share/sysbench/oltp_update_index.lua
/usr/share/sysbench/oltp_update_non_index.lua
/usr/share/sysbench/oltp_write_only.lua
/usr/share/sysbench/select_random_points.lua
/usr/share/sysbench/select_random_ranges.lua
/usr/share/sysbench/tests
/usr/share/sysbench/tests/include
/usr/share/sysbench/tests/include/api_sql_common.sh
/usr/share/sysbench/tests/include/config.sh
/usr/share/sysbench/tests/include/drv_common.sh
/usr/share/sysbench/tests/include/inspect.lua
/usr/share/sysbench/tests/include/mysql_common.sh
/usr/share/sysbench/tests/include/oltp_legacy
/usr/share/sysbench/tests/include/oltp_legacy/bulk_insert.lua
/usr/share/sysbench/tests/include/oltp_legacy/common.lua
/usr/share/sysbench/tests/include/oltp_legacy/delete.lua
/usr/share/sysbench/tests/include/oltp_legacy/insert.lua
/usr/share/sysbench/tests/include/oltp_legacy/oltp.lua
/usr/share/sysbench/tests/include/oltp_legacy/oltp_simple.lua
/usr/share/sysbench/tests/include/oltp_legacy/parallel_prepare.lua
/usr/share/sysbench/tests/include/oltp_legacy/select.lua
/usr/share/sysbench/tests/include/oltp_legacy/select_random_points.lua
/usr/share/sysbench/tests/include/oltp_legacy/select_random_ranges.lua
/usr/share/sysbench/tests/include/oltp_legacy/update_index.lua
/usr/share/sysbench/tests/include/oltp_legacy/update_non_index.lua
/usr/share/sysbench/tests/include/pgsql_common.sh
/usr/share/sysbench/tests/include/script_bulk_insert_common.sh
/usr/share/sysbench/tests/include/script_oltp_common.sh
/usr/share/sysbench/tests/include/script_oltp_legacy_common.sh
/usr/share/sysbench/tests/include/script_select_random_common.sh
/usr/share/sysbench/tests/include/script_select_random_legacy_common.sh
/usr/share/sysbench/tests/t
/usr/share/sysbench/tests/t/1st.t
/usr/share/sysbench/tests/t/api_basic.t
/usr/share/sysbench/tests/t/api_histogram.t
/usr/share/sysbench/tests/t/api_legacy_basic.t
/usr/share/sysbench/tests/t/api_legacy_rand.t
/usr/share/sysbench/tests/t/api_legacy_sql.t
/usr/share/sysbench/tests/t/api_rand.t
/usr/share/sysbench/tests/t/api_reports.t
/usr/share/sysbench/tests/t/api_sql_mysql.t
/usr/share/sysbench/tests/t/api_sql_pgsql.t
/usr/share/sysbench/tests/t/cmd_cleanup.t
/usr/share/sysbench/tests/t/cmd_help.t
/usr/share/sysbench/tests/t/cmd_prepare.t
/usr/share/sysbench/tests/t/cmd_run.t
/usr/share/sysbench/tests/t/cmdline.t
/usr/share/sysbench/tests/t/commands.t
/usr/share/sysbench/tests/t/drivers.t
/usr/share/sysbench/tests/t/drv_mysql.t
/usr/share/sysbench/tests/t/drv_pgsql.t
/usr/share/sysbench/tests/t/help_drv_mysql.t
/usr/share/sysbench/tests/t/help_drv_pgsql.t
/usr/share/sysbench/tests/t/opt_help.t
/usr/share/sysbench/tests/t/opt_histogram.t
/usr/share/sysbench/tests/t/opt_rate.t
/usr/share/sysbench/tests/t/opt_report_checkpoints.t
/usr/share/sysbench/tests/t/opt_report_interval.t
/usr/share/sysbench/tests/t/opt_version.t
/usr/share/sysbench/tests/t/script_bulk_insert_mysql.t
/usr/share/sysbench/tests/t/script_bulk_insert_pgsql.t
/usr/share/sysbench/tests/t/script_oltp_delete_mysql.t
/usr/share/sysbench/tests/t/script_oltp_delete_pgsql.t
/usr/share/sysbench/tests/t/script_oltp_help.t
/usr/share/sysbench/tests/t/script_oltp_insert_mysql.t
/usr/share/sysbench/tests/t/script_oltp_insert_pgsql.t
/usr/share/sysbench/tests/t/script_oltp_point_select_mysql.t
/usr/share/sysbench/tests/t/script_oltp_point_select_pgsql.t
/usr/share/sysbench/tests/t/script_oltp_read_write_mysql.t
/usr/share/sysbench/tests/t/script_oltp_read_write_pgsql.t
/usr/share/sysbench/tests/t/script_select_random_mysql.t
/usr/share/sysbench/tests/t/script_select_random_pgsql.t
/usr/share/sysbench/tests/t/test_cpu.t
/usr/share/sysbench/tests/t/test_fileio.t
/usr/share/sysbench/tests/t/test_memory.t
/usr/share/sysbench/tests/t/test_mutex.t
/usr/share/sysbench/tests/t/test_threads.t
/usr/share/sysbench/tests/t/tests.t
/usr/share/sysbench/tests/test_run.sh
References
Summary
In this tutorial we learn how to install sysbench
on Fedora 34 using yum and dnf.