How To Install rubygem-coderay on Fedora 36

In this tutorial we learn how to install rubygem-coderay in Fedora 36. rubygem-coderay is Fast syntax highlighting for selected languages

Introduction

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

What is rubygem-coderay

Fast and easy syntax highlighting for selected languages, written in Ruby. Comes with RedCloth integration and LOC counter.

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

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

sudo dnf -y install rubygem-coderay

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

sudo yum -y install rubygem-coderay

How To Uninstall rubygem-coderay on Fedora 36

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

sudo dnf remove rubygem-coderay

rubygem-coderay Package Contents on Fedora 36

/usr/bin/coderay
/usr/share/gems/gems/coderay-1.1.3
/usr/share/gems/gems/coderay-1.1.3/MIT-LICENSE
/usr/share/gems/gems/coderay-1.1.3/bin
/usr/share/gems/gems/coderay-1.1.3/bin/coderay
/usr/share/gems/gems/coderay-1.1.3/lib
/usr/share/gems/gems/coderay-1.1.3/lib/coderay
/usr/share/gems/gems/coderay-1.1.3/lib/coderay.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/duo.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/_map.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/count.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/debug.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/debug_lint.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/div.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/encoder.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/filter.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/html
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/html.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/html/css.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/html/numbering.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/html/output.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/json.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/lines_of_code.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/lint.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/null.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/page.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/span.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/statistic.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/terminal.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/text.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/token_kind_filter.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/xml.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/for_redcloth.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/helpers
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/helpers/file_type.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/helpers/plugin.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/helpers/plugin_host.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/helpers/word_list.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/_map.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/c.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/clojure.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/cpp.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/css.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/debug.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/delphi.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/diff.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/erb.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/go.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/groovy.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/haml.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/html.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/java
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/java.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/java/builtin_types.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/java_script.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/json.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/lua.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/php.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/python.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/raydebug.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/ruby
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/ruby.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/ruby/patterns.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/ruby/string_state.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/sass.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/scanner.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/sql.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/taskpaper.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/xml.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/scanners/yaml.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/styles
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/styles.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/styles/_map.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/styles/alpha.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/styles/style.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/token_kinds.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/tokens.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/tokens_proxy.rb
/usr/share/gems/gems/coderay-1.1.3/lib/coderay/version.rb
/usr/share/gems/specifications/coderay-1.1.3.gemspec

References

Summary

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