How To Install cab on Fedora 36
Introduction
In this tutorial we learn how to install cab
on Fedora 36.
What is cab
Cab provides a maintenance command for Haskell cabal packages. It is partly a wrapper of ghc-pkg and cabal. If you get confused by the differences between the two commands, need a way to check all outdated packages, or to remove outdated packages recursively, this command will help.
We can use yum
or dnf
to install cab
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install cab.
Install cab 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 cab
using dnf
by running the following command:
sudo dnf -y install cab
Install cab 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 cab
using yum
by running the following command:
sudo yum -y install cab
How To Uninstall cab on Fedora 36
To uninstall only the cab
package we can use the following command:
sudo dnf remove cab
cab Package Contents on Fedora 36
/usr/bin/cab
/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/9d3d242928999f207067fcd0e12f4f6fad1fc5
/usr/share/licenses/cab
/usr/share/licenses/cab/LICENSE
References
Summary
In this tutorial we learn how to install cab
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).