How To Install cgreen on Fedora 36

In this tutorial we learn how to install cgreen in Fedora 36. cgreen is Modern unit test and mocking framework for C and C++

Introduction

In this tutorial we learn how to install cgreen on Fedora 36.

What is cgreen

A modern, portable, cross-language unit testing and mocking framework for C and C++.

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

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

sudo dnf -y install cgreen

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

sudo yum -y install cgreen
---

How To Uninstall cgreen on Fedora 36

title: “How To Install cgreen on Fedora 36”

linkTitle: “cgreen” To uninstall only the cgreen package we can use the following command: type: “docs”

description: “In this tutorial we learn how to install cgreen in Fedora 36. cgreen is Modern unit test and mocking framework for C and C++”

date: "2022-08-17"
sudo dnf remove cgreen
lastmod: "2022-08-17"

#image: /images/fedora/36/cgreen-featured.png

cgreen Package Contents on Fedora 36

## Introduction

In this tutorial we learn how to install `cgreen` on Fedora 36.

### What is `cgreen`

> A modern, portable, cross-language unit testing and mocking framework for C and C++.  

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

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

sudo dnf -y install cgreen

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

sudo yum -y install cgreen

How To Uninstall cgreen on Fedora 36

/usr/lib/.build-id /usr/lib/.build-id/15 /usr/lib/.build-id/15/6cf4edbee0815936841a696f502b8c3cc46130 /usr/lib/libcgreen.so.1 /usr/lib/libcgreen.so.1.4.1 /usr/share/doc/cgreen /usr/share/doc/cgreen/README.md /usr/share/licenses/cgreen /usr/share/licenses/cgreen/LICENSE

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

sudo dnf remove cgreen

cgreen Package Contents on Fedora 36

References

Summary

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

/usr/lib/.build-id /usr/lib/.build-id/fc /usr/lib/.build-id/fc/17b4a67a609971cef8605c1e562b36cbefd32b /usr/lib64/libcgreen.so.1 /usr/lib64/libcgreen.so.1.4.1 /usr/share/doc/cgreen /usr/share/doc/cgreen/README.md /usr/share/licenses/cgreen /usr/share/licenses/cgreen/LICENSE


## References

* [cgreen website](https://github.com/cgreen-devs/cgreen)

## Summary

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