How To Install libgit2 on Fedora 36
Introduction
In this tutorial we learn how to install libgit2
on Fedora 36.
What is libgit2
libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language with bindings.
We can use yum
or dnf
to install libgit2
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libgit2.
Install libgit2 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 libgit2
using dnf
by running the following command:
sudo dnf -y install libgit2
Install libgit2 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 libgit2
using yum
by running the following command:
title: “How To Install libgit2 on Fedora 36”
linkTitle: "libgit2"
sudo yum -y install libgit2
type: "docs"
How To Uninstall libgit2 on Fedora 36
description: “In this tutorial we learn how to install libgit2 in Fedora 36. libgit2 is C implementation of the Git core methods as a library with a solid API”
date: “2022-08-17”
To uninstall only the libgit2
package we can use the following command:
lastmod: “2022-08-17”
#image: /images/fedora/36/libgit2-featured.png
sudo dnf remove libgit2
---
Introduction
libgit2 Package Contents on Fedora 36
In this tutorial we learn how to install libgit2
on Fedora 36.
### What is `libgit2`
> libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language with bindings.
We can use `yum` or `dnf` to install `libgit2` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libgit2.
## Install libgit2 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 libgit2
using dnf
by running the following command:
sudo dnf -y install libgit2
Install libgit2 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 libgit2
using yum
by running the following command:
sudo yum -y install libgit2
How To Uninstall libgit2 on Fedora 36
To uninstall only the libgit2
package we can use the following command:
sudo dnf remove libgit2
libgit2 Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/e305755e93cf3dfdab7930bcbc7360003b86cc
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/6946cefdf5a3e4f14fe5bcc2d2ba7dbe47daae
/usr/lib64/libgit2.so.1.1
/usr/lib64/libgit2.so.1.1.0
/usr/lib64/libgit2.so.1.3
/usr/lib64/libgit2.so.1.3.0
/usr/share/licenses/libgit2
/usr/share/licenses/libgit2/COPYING
References
Summary
In this tutorial we learn how to install libgit2
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
/usr/lib/.build-id /usr/lib/.build-id/18 /usr/lib/.build-id/18/a8b39cb0d097ef33bf857dd8b1b47f618e1354 /usr/lib/.build-id/de /usr/lib/.build-id/de/d5fddec94f344224225fe57a6e22001bc756d3 /usr/lib/libgit2.so.1.1 /usr/lib/libgit2.so.1.1.0 /usr/lib/libgit2.so.1.3 /usr/lib/libgit2.so.1.3.0 /usr/share/licenses/libgit2 /usr/share/licenses/libgit2/COPYING
## References
* [libgit2 website](https://libgit2.org/)
## Summary
In this tutorial we learn how to install `libgit2` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).