How To Install git-filter-repo on Fedora 36

In this tutorial we learn how to install git-filter-repo in Fedora 36. git-filter-repo is Quickly rewrite git repository history (git-filter-branch replacement)

Introduction

In this tutorial we learn how to install git-filter-repo on Fedora 36.

What is git-filter-repo

git filter-repo is a versatile tool for rewriting history, which includes capabilities not found anywhere else. It roughly falls into the same space of tool as git filter-branch but without the capitulation-inducing poor performance, with far more capabilities, and with a design that scales usability-wise beyond trivial rewriting cases.

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

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

sudo dnf -y install git-filter-repo

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

sudo yum -y install git-filter-repo

How To Uninstall git-filter-repo on Fedora 36

To uninstall only the git-filter-repo package we can use the following command:

sudo dnf remove git-filter-repo

git-filter-repo Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/git_filter_repo.py
/usr/libexec/git-core/git-filter-repo
/usr/share/doc/git-filter-repo
/usr/share/doc/git-filter-repo/README.md
/usr/share/doc/git-filter-repo/filter-repo-demos
/usr/share/doc/git-filter-repo/filter-repo-demos/README.md
/usr/share/doc/git-filter-repo/filter-repo-demos/barebones-example
/usr/share/doc/git-filter-repo/filter-repo-demos/bfg-ish
/usr/share/doc/git-filter-repo/filter-repo-demos/clean-ignore
/usr/share/doc/git-filter-repo/filter-repo-demos/filter-branch-ish
/usr/share/doc/git-filter-repo/filter-repo-demos/filter-lamely
/usr/share/doc/git-filter-repo/filter-repo-demos/insert-beginning
/usr/share/doc/git-filter-repo/filter-repo-demos/lint-history
/usr/share/doc/git-filter-repo/filter-repo-demos/signed-off-by
/usr/share/licenses/git-filter-repo
/usr/share/licenses/git-filter-repo/COPYING
/usr/share/man/man1/git-filter-repo.1.gz

References

Summary

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