How To Install libgit2-devel on Rocky Linux 8

In this tutorial we learn how to install libgit2-devel on Rocky Linux 8. libgit2-devel is Development files for libgit2

Introduction

In this tutorial we learn how to install libgit2-devel on Rocky Linux 8.

What is libgit2-devel

This package contains libraries and header files for developing applications that use libgit2.

We can use yum or dnf to install libgit2-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libgit2-devel.

Install libgit2-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libgit2-devel

Install libgit2-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libgit2-devel

How To Uninstall libgit2-devel on Rocky Linux 8

To uninstall only the libgit2-devel package we can use the following command:

sudo dnf remove libgit2-devel

libgit2-devel Package Contents on Rocky Linux 8

/usr/include/git2
/usr/include/git2.h
/usr/include/git2/annotated_commit.h
/usr/include/git2/attr.h
/usr/include/git2/blame.h
/usr/include/git2/blob.h
/usr/include/git2/branch.h
/usr/include/git2/buffer.h
/usr/include/git2/checkout.h
/usr/include/git2/cherrypick.h
/usr/include/git2/clone.h
/usr/include/git2/commit.h
/usr/include/git2/common.h
/usr/include/git2/config.h
/usr/include/git2/cred_helpers.h
/usr/include/git2/describe.h
/usr/include/git2/diff.h
/usr/include/git2/errors.h
/usr/include/git2/filter.h
/usr/include/git2/global.h
/usr/include/git2/graph.h
/usr/include/git2/ignore.h
/usr/include/git2/index.h
/usr/include/git2/indexer.h
/usr/include/git2/inttypes.h
/usr/include/git2/merge.h
/usr/include/git2/message.h
/usr/include/git2/net.h
/usr/include/git2/notes.h
/usr/include/git2/object.h
/usr/include/git2/odb.h
/usr/include/git2/odb_backend.h
/usr/include/git2/oid.h
/usr/include/git2/oidarray.h
/usr/include/git2/pack.h
/usr/include/git2/patch.h
/usr/include/git2/pathspec.h
/usr/include/git2/proxy.h
/usr/include/git2/rebase.h
/usr/include/git2/refdb.h
/usr/include/git2/reflog.h
/usr/include/git2/refs.h
/usr/include/git2/refspec.h
/usr/include/git2/remote.h
/usr/include/git2/repository.h
/usr/include/git2/reset.h
/usr/include/git2/revert.h
/usr/include/git2/revparse.h
/usr/include/git2/revwalk.h
/usr/include/git2/signature.h
/usr/include/git2/stash.h
/usr/include/git2/status.h
/usr/include/git2/stdint.h
/usr/include/git2/strarray.h
/usr/include/git2/submodule.h
/usr/include/git2/sys
/usr/include/git2/sys/commit.h
/usr/include/git2/sys/config.h
/usr/include/git2/sys/diff.h
/usr/include/git2/sys/filter.h
/usr/include/git2/sys/hashsig.h
/usr/include/git2/sys/index.h
/usr/include/git2/sys/mempack.h
/usr/include/git2/sys/merge.h
/usr/include/git2/sys/odb_backend.h
/usr/include/git2/sys/openssl.h
/usr/include/git2/sys/refdb_backend.h
/usr/include/git2/sys/reflog.h
/usr/include/git2/sys/refs.h
/usr/include/git2/sys/remote.h
/usr/include/git2/sys/repository.h
/usr/include/git2/sys/stream.h
/usr/include/git2/sys/time.h
/usr/include/git2/sys/transport.h
/usr/include/git2/tag.h
/usr/include/git2/trace.h
/usr/include/git2/transaction.h
/usr/include/git2/transport.h
/usr/include/git2/tree.h
/usr/include/git2/types.h
/usr/include/git2/version.h
/usr/include/git2/worktree.h
/usr/lib/libgit2.so
/usr/lib/pkgconfig/libgit2.pc
/usr/share/doc/libgit2-devel
/usr/share/doc/libgit2-devel/AUTHORS
/usr/share/doc/libgit2-devel/README.md
/usr/share/doc/libgit2-devel/docs
/usr/share/doc/libgit2-devel/docs/checkout-internals.md
/usr/share/doc/libgit2-devel/docs/diff-internals.md
/usr/share/doc/libgit2-devel/docs/error-handling.md
/usr/share/doc/libgit2-devel/docs/merge-df_conflicts.txt
/usr/share/doc/libgit2-devel/examples
/usr/share/doc/libgit2-devel/examples/CMakeLists.txt
/usr/share/doc/libgit2-devel/examples/COPYING
/usr/share/doc/libgit2-devel/examples/Makefile
/usr/share/doc/libgit2-devel/examples/README.md
/usr/share/doc/libgit2-devel/examples/add.c
/usr/share/doc/libgit2-devel/examples/blame.c
/usr/share/doc/libgit2-devel/examples/cat-file.c
/usr/share/doc/libgit2-devel/examples/common.c
/usr/share/doc/libgit2-devel/examples/common.h
/usr/share/doc/libgit2-devel/examples/describe.c
/usr/share/doc/libgit2-devel/examples/diff.c
/usr/share/doc/libgit2-devel/examples/for-each-ref.c
/usr/share/doc/libgit2-devel/examples/general.c
/usr/share/doc/libgit2-devel/examples/init.c
/usr/share/doc/libgit2-devel/examples/log.c
/usr/share/doc/libgit2-devel/examples/network
/usr/share/doc/libgit2-devel/examples/network/Makefile
/usr/share/doc/libgit2-devel/examples/network/clone.c
/usr/share/doc/libgit2-devel/examples/network/common.c
/usr/share/doc/libgit2-devel/examples/network/common.h
/usr/share/doc/libgit2-devel/examples/network/fetch.c
/usr/share/doc/libgit2-devel/examples/network/git2.c
/usr/share/doc/libgit2-devel/examples/network/index-pack.c
/usr/share/doc/libgit2-devel/examples/network/ls-remote.c
/usr/share/doc/libgit2-devel/examples/remote.c
/usr/share/doc/libgit2-devel/examples/rev-list.c
/usr/share/doc/libgit2-devel/examples/rev-parse.c
/usr/share/doc/libgit2-devel/examples/showindex.c
/usr/share/doc/libgit2-devel/examples/status.c
/usr/share/doc/libgit2-devel/examples/tag.c
/usr/share/doc/libgit2-devel/examples/test
/usr/share/doc/libgit2-devel/examples/test/test-rev-list.sh
/usr/share/doc/libgit2/README.rhel8
/usr/include/git2
/usr/include/git2.h
/usr/include/git2/annotated_commit.h
/usr/include/git2/attr.h
/usr/include/git2/blame.h
/usr/include/git2/blob.h
/usr/include/git2/branch.h
/usr/include/git2/buffer.h
/usr/include/git2/checkout.h
/usr/include/git2/cherrypick.h
/usr/include/git2/clone.h
/usr/include/git2/commit.h
/usr/include/git2/common.h
/usr/include/git2/config.h
/usr/include/git2/cred_helpers.h
/usr/include/git2/describe.h
/usr/include/git2/diff.h
/usr/include/git2/errors.h
/usr/include/git2/filter.h
/usr/include/git2/global.h
/usr/include/git2/graph.h
/usr/include/git2/ignore.h
/usr/include/git2/index.h
/usr/include/git2/indexer.h
/usr/include/git2/inttypes.h
/usr/include/git2/merge.h
/usr/include/git2/message.h
/usr/include/git2/net.h
/usr/include/git2/notes.h
/usr/include/git2/object.h
/usr/include/git2/odb.h
/usr/include/git2/odb_backend.h
/usr/include/git2/oid.h
/usr/include/git2/oidarray.h
/usr/include/git2/pack.h
/usr/include/git2/patch.h
/usr/include/git2/pathspec.h
/usr/include/git2/proxy.h
/usr/include/git2/rebase.h
/usr/include/git2/refdb.h
/usr/include/git2/reflog.h
/usr/include/git2/refs.h
/usr/include/git2/refspec.h
/usr/include/git2/remote.h
/usr/include/git2/repository.h
/usr/include/git2/reset.h
/usr/include/git2/revert.h
/usr/include/git2/revparse.h
/usr/include/git2/revwalk.h
/usr/include/git2/signature.h
/usr/include/git2/stash.h
/usr/include/git2/status.h
/usr/include/git2/stdint.h
/usr/include/git2/strarray.h
/usr/include/git2/submodule.h
/usr/include/git2/sys
/usr/include/git2/sys/commit.h
/usr/include/git2/sys/config.h
/usr/include/git2/sys/diff.h
/usr/include/git2/sys/filter.h
/usr/include/git2/sys/hashsig.h
/usr/include/git2/sys/index.h
/usr/include/git2/sys/mempack.h
/usr/include/git2/sys/merge.h
/usr/include/git2/sys/odb_backend.h
/usr/include/git2/sys/openssl.h
/usr/include/git2/sys/refdb_backend.h
/usr/include/git2/sys/reflog.h
/usr/include/git2/sys/refs.h
/usr/include/git2/sys/remote.h
/usr/include/git2/sys/repository.h
/usr/include/git2/sys/stream.h
/usr/include/git2/sys/time.h
/usr/include/git2/sys/transport.h
/usr/include/git2/tag.h
/usr/include/git2/trace.h
/usr/include/git2/transaction.h
/usr/include/git2/transport.h
/usr/include/git2/tree.h
/usr/include/git2/types.h
/usr/include/git2/version.h
/usr/include/git2/worktree.h
/usr/lib64/libgit2.so
/usr/lib64/pkgconfig/libgit2.pc
/usr/share/doc/libgit2-devel
/usr/share/doc/libgit2-devel/AUTHORS
/usr/share/doc/libgit2-devel/README.md
/usr/share/doc/libgit2-devel/docs
/usr/share/doc/libgit2-devel/docs/checkout-internals.md
/usr/share/doc/libgit2-devel/docs/diff-internals.md
/usr/share/doc/libgit2-devel/docs/error-handling.md
/usr/share/doc/libgit2-devel/docs/merge-df_conflicts.txt
/usr/share/doc/libgit2-devel/examples
/usr/share/doc/libgit2-devel/examples/CMakeLists.txt
/usr/share/doc/libgit2-devel/examples/COPYING
/usr/share/doc/libgit2-devel/examples/Makefile
/usr/share/doc/libgit2-devel/examples/README.md
/usr/share/doc/libgit2-devel/examples/add.c
/usr/share/doc/libgit2-devel/examples/blame.c
/usr/share/doc/libgit2-devel/examples/cat-file.c
/usr/share/doc/libgit2-devel/examples/common.c
/usr/share/doc/libgit2-devel/examples/common.h
/usr/share/doc/libgit2-devel/examples/describe.c
/usr/share/doc/libgit2-devel/examples/diff.c
/usr/share/doc/libgit2-devel/examples/for-each-ref.c
/usr/share/doc/libgit2-devel/examples/general.c
/usr/share/doc/libgit2-devel/examples/init.c
/usr/share/doc/libgit2-devel/examples/log.c
/usr/share/doc/libgit2-devel/examples/network
/usr/share/doc/libgit2-devel/examples/network/Makefile
/usr/share/doc/libgit2-devel/examples/network/clone.c
/usr/share/doc/libgit2-devel/examples/network/common.c
/usr/share/doc/libgit2-devel/examples/network/common.h
/usr/share/doc/libgit2-devel/examples/network/fetch.c
/usr/share/doc/libgit2-devel/examples/network/git2.c
/usr/share/doc/libgit2-devel/examples/network/index-pack.c
/usr/share/doc/libgit2-devel/examples/network/ls-remote.c
/usr/share/doc/libgit2-devel/examples/remote.c
/usr/share/doc/libgit2-devel/examples/rev-list.c
/usr/share/doc/libgit2-devel/examples/rev-parse.c
/usr/share/doc/libgit2-devel/examples/showindex.c
/usr/share/doc/libgit2-devel/examples/status.c
/usr/share/doc/libgit2-devel/examples/tag.c
/usr/share/doc/libgit2-devel/examples/test
/usr/share/doc/libgit2-devel/examples/test/test-rev-list.sh
/usr/share/doc/libgit2/README.rhel8

References

Summary

In this tutorial we learn how to install libgit2-devel on Rocky Linux 8 using yum and dnf.