How To Install rubygem-rails-deprecated_sanitizer on Fedora 36
Introduction
In this tutorial we learn how to install rubygem-rails-deprecated_sanitizer
on Fedora 36.
What is rubygem-rails-deprecated_sanitizer
In Rails 4.2 HTML sanitization has been rewritten using a more secure library. This gem includes the old behavior shipping with Rails 4.2 and before. It is strictly provided to ease migration. It will be supported until Rails 5.
We can use yum
or dnf
to install rubygem-rails-deprecated_sanitizer
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-rails-deprecated_sanitizer.
Install rubygem-rails-deprecated_sanitizer 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-rails-deprecated_sanitizer
using dnf
by running the following command:
sudo dnf -y install rubygem-rails-deprecated_sanitizer
Install rubygem-rails-deprecated_sanitizer 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-rails-deprecated_sanitizer
using yum
by running the following command:
sudo yum -y install rubygem-rails-deprecated_sanitizer
How To Uninstall rubygem-rails-deprecated_sanitizer on Fedora 36
To uninstall only the rubygem-rails-deprecated_sanitizer
package we can use the following command:
sudo dnf remove rubygem-rails-deprecated_sanitizer
rubygem-rails-deprecated_sanitizer Package Contents on Fedora 36
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/LICENSE
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails-deprecated_sanitizer.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner/html
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner/html/document.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner/html/node.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner/html/sanitizer.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner/html/selector.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner/html/tokenizer.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/html-scanner/html/version.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/railtie.rb
/usr/share/gems/gems/rails-deprecated_sanitizer-1.0.4/lib/rails/deprecated_sanitizer/version.rb
/usr/share/gems/specifications/rails-deprecated_sanitizer-1.0.4.gemspec
References
Summary
In this tutorial we learn how to install rubygem-rails-deprecated_sanitizer
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).