How To Install rubygem-haml on Fedora 36

In this tutorial we learn how to install rubygem-haml in Fedora 36. rubygem-haml is An elegant, structured (X)HTML/XML templating engine

Introduction

In this tutorial we learn how to install rubygem-haml on Fedora 36.

What is rubygem-haml

Haml (HTML Abstraction Markup Language) is a layer on top of HTML or XML that’s designed to express the structure documents in a non-repetitive, elegant, easy way by using indentation rather than closing tags and allowing Ruby to be embedded with ease. It was originally envisioned as a plugin for Ruby on Rails, but it can function as a stand-alone templating engine.

We can use yum or dnf to install rubygem-haml on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-haml.

Install rubygem-haml 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-haml using dnf by running the following command:

sudo dnf -y install rubygem-haml

Install rubygem-haml 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-haml using yum by running the following command:

sudo yum -y install rubygem-haml

How To Uninstall rubygem-haml on Fedora 36

To uninstall only the rubygem-haml package we can use the following command:

sudo dnf remove rubygem-haml

rubygem-haml Package Contents on Fedora 36

/usr/bin/haml
/usr/share/gems/gems/haml-5.2.2
/usr/share/gems/gems/haml-5.2.2/MIT-LICENSE
/usr/share/gems/gems/haml-5.2.2/bin
/usr/share/gems/gems/haml-5.2.2/bin/haml
/usr/share/gems/gems/haml-5.2.2/lib
/usr/share/gems/gems/haml-5.2.2/lib/haml
/usr/share/gems/gems/haml-5.2.2/lib/haml.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/attribute_builder.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/attribute_compiler.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/attribute_parser.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/buffer.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/compiler.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/engine.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/error.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/escapable.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/exec.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/filters.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/generator.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/helpers
/usr/share/gems/gems/haml-5.2.2/lib/haml/helpers.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/helpers/action_view_extensions.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/helpers/action_view_mods.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/helpers/action_view_xss_mods.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/helpers/safe_erubi_template.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/helpers/safe_erubis_template.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/helpers/xss_mods.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/options.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/parser.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/plugin.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/railtie.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/sass_rails_filter.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/template
/usr/share/gems/gems/haml-5.2.2/lib/haml/template.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/template/options.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/temple_engine.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/temple_line_counter.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/util.rb
/usr/share/gems/gems/haml-5.2.2/lib/haml/version.rb
/usr/share/gems/specifications/haml-5.2.2.gemspec

References

Summary

In this tutorial we learn how to install rubygem-haml on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).