How To Install ghc-xss-sanitize on Fedora 36
Introduction
In this tutorial we learn how to install ghc-xss-sanitize on Fedora 36.
What is ghc-xss-sanitize
Run untrusted HTML through Text.HTML.SanitizeXSS.sanitizeXSS to prevent XSS attacks. See README.md <http more details.
We can use yum or dnf to install ghc-xss-sanitize on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-xss-sanitize.
Install ghc-xss-sanitize 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-xss-sanitize using dnf by running the following command:
sudo dnf -y install ghc-xss-sanitize
Install ghc-xss-sanitize 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-xss-sanitize using yum by running the following command:
sudo yum -y install ghc-xss-sanitize
How To Uninstall ghc-xss-sanitize on Fedora 36
To uninstall only the ghc-xss-sanitize package we can use the following command:
sudo dnf remove ghc-xss-sanitize
ghc-xss-sanitize Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/85
/usr/lib/.build-id/85/54b962696e04a1b05250ad10a84b110595d01a
/usr/lib64/libHSxss-sanitize-0.3.6-4DPs4v3R62K1AmkLURP55K-ghc8.10.5.so
/usr/share/licenses/ghc-xss-sanitize
/usr/share/licenses/ghc-xss-sanitize/LICENSE
References
Summary
In this tutorial we learn how to install ghc-xss-sanitize on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).