How To Install rubygem-loofah on Fedora 36
Introduction
In this tutorial we learn how to install rubygem-loofah
on Fedora 36.
What is rubygem-loofah
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah excels at HTML sanitization (XSS prevention). It includes some nice HTML sanitizers, which are based on HTML5lib’s safelist, so it most likely won’t make your codes less secure. (These statements have not been evaluated by Netexperts.)
We can use yum
or dnf
to install rubygem-loofah
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-loofah.
Install rubygem-loofah 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 rubygem-loofah
using dnf
by running the following command:
sudo dnf -y install rubygem-loofah
Install rubygem-loofah 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 rubygem-loofah
using yum
by running the following command:
sudo yum -y install rubygem-loofah
How To Uninstall rubygem-loofah on Fedora 36
To uninstall only the rubygem-loofah
package we can use the following command:
sudo dnf remove rubygem-loofah
rubygem-loofah Package Contents on Fedora 36
/usr/share/gems/gems/loofah-2.10.0
/usr/share/gems/gems/loofah-2.10.0/MIT-LICENSE.txt
/usr/share/gems/gems/loofah-2.10.0/lib
/usr/share/gems/gems/loofah-2.10.0/lib/loofah
/usr/share/gems/gems/loofah-2.10.0/lib/loofah.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/elements.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/helpers.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/html
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/html/document.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/html/document_fragment.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/html5
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/html5/libxml2_workarounds.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/html5/safelist.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/html5/scrub.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/instance_methods.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/metahelpers.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/scrubber.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/scrubbers.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/version.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/xml
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/xml/document.rb
/usr/share/gems/gems/loofah-2.10.0/lib/loofah/xml/document_fragment.rb
/usr/share/gems/specifications/loofah-2.10.0.gemspec
References
Summary
In this tutorial we learn how to install rubygem-loofah
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).