How To Install coan on Fedora 36
Introduction
In this tutorial we learn how to install coan
on Fedora 36.
What is coan
coan (formerly sunifdef) is a software engineering tool for analyzing pre-processor-based configurations of C or C++ source code. Its principal use is to simplify a body of source code by eliminating any parts that are redundant with respect to a specified configuration. coan is most useful to developers of constantly evolving products with large code bases, where pre-processor conditionals are used to configure the feature sets, APIs or implementations of different releases. In these environments the code base steadily accumulates #ifdef-pollution as transient configuration options become obsolete. coan can largely automate the recurrent task of purging redundant #if-logic from the code.
We can use yum
or dnf
to install coan
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install coan.
Install coan 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 coan
using dnf
by running the following command:
sudo dnf -y install coan
Install coan 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 coan
using yum
by running the following command:
sudo yum -y install coan
How To Uninstall coan on Fedora 36
To uninstall only the coan
package we can use the following command:
sudo dnf remove coan
coan Package Contents on Fedora 36
/usr/bin/coan
/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/f141a0330ed696a86e9d77ffe3e94f35c3a787
/usr/share/doc/coan
/usr/share/doc/coan/AUTHORS
/usr/share/doc/coan/ChangeLog
/usr/share/doc/coan/README
/usr/share/licenses/coan
/usr/share/licenses/coan/LICENSE.BSD
/usr/share/man/man1/coan.1.1.gz
References
Summary
In this tutorial we learn how to install coan
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).