How To Install cabal-rpm on Fedora 36
Introduction
In this tutorial we learn how to install cabal-rpm
on Fedora 36.
What is cabal-rpm
This package provides a RPM packaging tool for Haskell Cabal-based packages. cabal-rpm has commands to generate a RPM spec file and srpm for a package. It can rpmbuild packages, yum/dnf install their dependencies, prep packages, and install them. There are commands to list package dependencies and missing dependencies. The diff command compares the current spec file with a freshly generated one, the update command updates the spec file to latest version from Stackage or Hackage, and the refresh command updates the spec file to the current cabal-rpm packaging. It also handles Hackage revisions of packages. Standalone packages can also be made, built with cabal-install.
We can use yum
or dnf
to install cabal-rpm
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install cabal-rpm.
Install cabal-rpm 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 cabal-rpm
using dnf
by running the following command:
sudo dnf -y install cabal-rpm
Install cabal-rpm 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 cabal-rpm
using yum
by running the following command:
sudo yum -y install cabal-rpm
How To Uninstall cabal-rpm on Fedora 36
To uninstall only the cabal-rpm
package we can use the following command:
sudo dnf remove cabal-rpm
cabal-rpm Package Contents on Fedora 36
/usr/bin/cabal-rpm
/usr/bin/cblrpm
/usr/lib/.build-id
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/17685d6006a5e0a6dbb13322cd9a205a0e0749
/usr/share/bash-completion/completions/cabal-rpm
/usr/share/bash-completion/completions/cblrpm
/usr/share/doc/cabal-rpm
/usr/share/doc/cabal-rpm/ChangeLog
/usr/share/doc/cabal-rpm/README.md
/usr/share/doc/cabal-rpm/TODO
/usr/share/licenses/cabal-rpm
/usr/share/licenses/cabal-rpm/COPYING
/usr/share/man/man1/cabal-rpm.1.gz
/usr/share/man/man1/cblrpm.1.gz
References
Summary
In this tutorial we learn how to install cabal-rpm
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).