How To Install pretty-git-prompt on Fedora 36

In this tutorial we learn how to install pretty-git-prompt in Fedora 36. pretty-git-prompt is Your current git repository information inside a beautiful shell prompt

Introduction

In this tutorial we learn how to install pretty-git-prompt on Fedora 36.

What is pretty-git-prompt

Your current git repository information inside a beautiful shell prompt.

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

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

sudo dnf -y install pretty-git-prompt

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

sudo yum -y install pretty-git-prompt

How To Uninstall pretty-git-prompt on Fedora 36

To uninstall only the pretty-git-prompt package we can use the following command:

sudo dnf remove pretty-git-prompt

pretty-git-prompt Package Contents on Fedora 36

/usr/bin/pretty-git-prompt
/usr/lib/.build-id
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/35cf67a84a2ac91f1dc94773db0ea878e2efb5
/usr/share/doc/pretty-git-prompt
/usr/share/doc/pretty-git-prompt/README.md
/usr/share/doc/pretty-git-prompt/files
/usr/share/doc/pretty-git-prompt/files/.bashrc
/usr/share/doc/pretty-git-prompt/files/.zshrc
/usr/share/doc/pretty-git-prompt/files/demo.py
/usr/share/doc/pretty-git-prompt/files/pretty-git-prompt.yml.bash
/usr/share/doc/pretty-git-prompt/files/pretty-git-prompt.yml.zsh
/usr/share/licenses/pretty-git-prompt
/usr/share/licenses/pretty-git-prompt/LICENSE

References

Summary

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