How To Install ghc-wai-cors on Fedora 36
Introduction
In this tutorial we learn how to install ghc-wai-cors
on Fedora 36.
What is ghc-wai-cors
This package provides an implementation of Cross-Origin resource sharing (CORS) for <http <http
We can use yum
or dnf
to install ghc-wai-cors
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-wai-cors.
Install ghc-wai-cors 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 ghc-wai-cors
using dnf
by running the following command:
sudo dnf -y install ghc-wai-cors
Install ghc-wai-cors 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 ghc-wai-cors
using yum
by running the following command:
sudo yum -y install ghc-wai-cors
How To Uninstall ghc-wai-cors on Fedora 36
To uninstall only the ghc-wai-cors
package we can use the following command:
sudo dnf remove ghc-wai-cors
ghc-wai-cors Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/9fa0741ee191e681e9a37d9ec04906bc99acc5
/usr/lib64/libHSwai-cors-0.2.7-fotjB8ZPCl64ElCtFwtmW-ghc8.10.5.so
/usr/share/licenses/ghc-wai-cors
/usr/share/licenses/ghc-wai-cors/LICENSE
/usr/share/wai-cors-0.2.7
/usr/share/wai-cors-0.2.7/examples
/usr/share/wai-cors-0.2.7/examples/Scotty.hs
/usr/share/wai-cors-0.2.7/examples/ServantWai.hs
/usr/share/wai-cors-0.2.7/examples/Wai.hs
/usr/share/wai-cors-0.2.7/test
/usr/share/wai-cors-0.2.7/test/index.html
/usr/share/wai-cors-0.2.7/test/phantomjs.js
References
Summary
In this tutorial we learn how to install ghc-wai-cors
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).