How To Install par on Fedora 36

In this tutorial we learn how to install par in Fedora 36. par is Paragraph reformatter, vaguely like fmt, but more elaborate

Introduction

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

What is par

par is a filter which copies its input to its output, changing all white characters (except newlines) to spaces, and reformatting each paragraph. Paragraphs are separated by protected, blank, and bodiless lines (see the man page Terminology section for definitions), and optionally delimited by indentation (see the d option in the Options section). Each output paragraph is generated from the corresponding input paragraph as follows 1) An optional prefix and/or suffix is removed from each input line. 2) The remainder is divided into words (separated by spaces). 3) The words are joined into lines to make an eye-pleasing paragraph. 4) The prefixes and suffixes are reattached. If there are suffixes, spaces are inserted before them so that they all end in the same column.

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

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

sudo dnf -y install par

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

sudo yum -y install par

How To Uninstall par on Fedora 36

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

sudo dnf remove par

par Package Contents on Fedora 36

/usr/bin/par
/usr/lib/.build-id
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/c6da05935af423d99bb8e972794a8b7fbed433
/usr/share/doc/par
/usr/share/doc/par/par.doc
/usr/share/doc/par/releasenotes
/usr/share/man/man1/par.1.gz

References

Summary

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