How To Install cabal-rpm on CentOS 7
Introduction
In this tutorial we learn how to install cabal-rpm
on CentOS 7.
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 packaged built with cabal-install.
We can use yum
or dnf
to install cabal-rpm
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install cabal-rpm.
Install cabal-rpm on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install cabal-rpm
using yum
by running the following command:
Install cabal-rpm on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install cabal-rpm
using dnf
by running the following command:
How To Uninstall cabal-rpm on CentOS 7
To uninstall only the cabal-rpm
package we can use the following command:
References
Summary
In this tutorial we learn how to install cabal-rpm
on CentOS 7 using yum
and dnf
.