How To Install google-benchmark on Fedora 36

In this tutorial we learn how to install google-benchmark in Fedora 36. google-benchmark is A microbenchmark support library

Introduction

In this tutorial we learn how to install google-benchmark on Fedora 36.

What is google-benchmark

A library to support the benchmarking of functions, similar to unit-tests.

We can use yum or dnf to install google-benchmark on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install google-benchmark.

Install google-benchmark on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install google-benchmark

Install google-benchmark on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install google-benchmark using yum by running the following command:

sudo yum -y install google-benchmark

How To Uninstall google-benchmark on Fedora 36

To uninstall only the google-benchmark package we can use the following command:

sudo dnf remove google-benchmark

google-benchmark Package Contents on Fedora 36

---
title: "How To Install google-benchmark on Fedora 36"
linkTitle: "google-benchmark"
type: "docs"
description: "In this tutorial we learn how to install google-benchmark in Fedora 36. google-benchmark is A microbenchmark support library"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/google-benchmark-featured.png
---

## Introduction

In this tutorial we learn how to install `google-benchmark` on Fedora 36.

### What is `google-benchmark`

> A library to support the benchmarking of functions, similar to unit-tests.  

We can use `yum` or `dnf` to install `google-benchmark` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install google-benchmark.

## Install google-benchmark on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

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

sudo dnf -y install google-benchmark

Install google-benchmark on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install google-benchmark using yum by running the following command:

sudo yum -y install google-benchmark

How To Uninstall google-benchmark on Fedora 36

To uninstall only the google-benchmark package we can use the following command:

sudo dnf remove google-benchmark

google-benchmark Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/cd41371a12d0d80542793200ff01ed4e10ef8d
/usr/lib/.build-id/55
/usr/lib/.build-id/55/b6b1dd353727142ec5f2123736a51c57ded3e2
/usr/lib/libbenchmark.so.1
/usr/lib/libbenchmark.so.1.6.1
/usr/lib/libbenchmark_main.so.1
/usr/lib/libbenchmark_main.so.1.6.1
/usr/share/doc/google-benchmark
/usr/share/doc/google-benchmark/CONTRIBUTING.md
/usr/share/doc/google-benchmark/README.md
/usr/share/licenses/google-benchmark
/usr/share/licenses/google-benchmark/AUTHORS
/usr/share/licenses/google-benchmark/CONTRIBUTORS
/usr/share/licenses/google-benchmark/LICENSE

References

Summary

In this tutorial we learn how to install google-benchmark on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).

/usr/lib/.build-id /usr/lib/.build-id/a9 /usr/lib/.build-id/a9/0ed2d4743ecda2832a8a2580a8061d5d36067a /usr/lib/.build-id/aa /usr/lib/.build-id/aa/9442aa58dd774781f3ea16d79f5902a40bceef /usr/lib64/libbenchmark.so.1 /usr/lib64/libbenchmark.so.1.6.1 /usr/lib64/libbenchmark_main.so.1 /usr/lib64/libbenchmark_main.so.1.6.1 /usr/share/doc/google-benchmark /usr/share/doc/google-benchmark/CONTRIBUTING.md /usr/share/doc/google-benchmark/README.md /usr/share/licenses/google-benchmark /usr/share/licenses/google-benchmark/AUTHORS /usr/share/licenses/google-benchmark/CONTRIBUTORS /usr/share/licenses/google-benchmark/LICENSE


## References

* [google-benchmark website](https://github.com/google/benchmark)

## Summary

In this tutorial we learn how to install `google-benchmark` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).