How To Install rubygem-prawn on Fedora 36

In this tutorial we learn how to install rubygem-prawn in Fedora 36. rubygem-prawn is A fast and nimble PDF generator for Ruby

Introduction

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

What is rubygem-prawn

Prawn is a pure Ruby PDF generation library that provides a lot of great functionality while trying to remain simple and reasonably performant. Here are some of the important features we provide - Vector drawing support, including lines, polygons, curves, ellipses, etc. - Extensive text rendering support, including flowing text and limited inline formatting options. - Support for both PDF builtin fonts as well as embedded TrueType fonts - A variety of low level tools for basic layout needs, including a simple grid system - PNG and JPG image embedding, with flexible scaling options - Reporting tools for rendering complex data tables, with pagination support - Security features including encryption and password protection - Tools for rendering repeatable content (i.e headers, footers, and page numbers) - Comprehensive internationalization features, including full support for UTF-8 based fonts, right-to-left text rendering, fallback font support, and extension points for customizable text wrapping. - Support for PDF outlines for document navigation - Low level PDF features, allowing users to create custom extensions by dropping down all the way to the PDF object tree layer. (Mostly useful to those with knowledge of the PDF specification) - Lots of other stuff!

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

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

sudo dnf -y install rubygem-prawn

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

sudo yum -y install rubygem-prawn

How To Uninstall rubygem-prawn on Fedora 36

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

sudo dnf remove rubygem-prawn

rubygem-prawn Package Contents on Fedora 36

/usr/share/gems/gems/prawn-2.4.0
/usr/share/gems/gems/prawn-2.4.0/COPYING
/usr/share/gems/gems/prawn-2.4.0/GPLv2
/usr/share/gems/gems/prawn-2.4.0/GPLv3
/usr/share/gems/gems/prawn-2.4.0/LICENSE
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Courier-Bold.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Courier-BoldOblique.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Courier-Oblique.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Courier.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Helvetica-Bold.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Helvetica-BoldOblique.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Helvetica-Oblique.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Helvetica.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Symbol.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Times-Bold.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Times-BoldItalic.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Times-Italic.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/Times-Roman.afm
/usr/share/gems/gems/prawn-2.4.0/data/fonts/ZapfDingbats.afm
/usr/share/gems/gems/prawn-2.4.0/lib
/usr/share/gems/gems/prawn-2.4.0/lib/prawn
/usr/share/gems/gems/prawn-2.4.0/lib/prawn.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/document
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/document.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/document/bounding_box.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/document/column_box.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/document/internals.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/document/span.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/encoding.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/errors.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/font.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/font_metric_cache.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/fonts
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/fonts/afm.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/fonts/dfont.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/fonts/otf.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/fonts/ttc.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/fonts/ttf.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics/blend_mode.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics/cap_style.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics/color.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics/dash.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics/join_style.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics/patterns.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics/transformation.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/graphics/transparency.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/grid.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/image_handler.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/images
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/images.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/images/image.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/images/jpg.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/images/png.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/measurement_extensions.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/measurements.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/outline.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/repeater.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/security
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/security.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/security/arcfour.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/soft_mask.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/stamp.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/box.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/formatted
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/formatted.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/formatted/arranger.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/formatted/box.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/formatted/fragment.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/formatted/line_wrap.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/formatted/parser.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/text/formatted/wrap.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/transformation_stack.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/utilities.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/version.rb
/usr/share/gems/gems/prawn-2.4.0/lib/prawn/view.rb
/usr/share/gems/specifications/prawn-2.4.0.gemspec

References

Summary

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