How To Install rubygem-mail on CentOS 8
Introduction
In this tutorial we learn how to install rubygem-mail
on CentOS 8.
What is rubygem-mail
A really Ruby Mail handler.
We can use yum
or dnf
to install rubygem-mail
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-mail.
Install rubygem-mail on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install rubygem-mail
using dnf
by running the following command:
sudo dnf -y install rubygem-mail
Install rubygem-mail on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install rubygem-mail
using yum
by running the following command:
sudo yum -y install rubygem-mail
How To Uninstall rubygem-mail on CentOS 8
To uninstall only the rubygem-mail
package we can use the following command:
sudo dnf remove rubygem-mail
rubygem-mail Package Contents on CentOS 8
/usr/share/gems/gems/mail-2.7.1
/usr/share/gems/gems/mail-2.7.1/MIT-LICENSE
/usr/share/gems/gems/mail-2.7.1/lib
/usr/share/gems/gems/mail-2.7.1/lib/mail
/usr/share/gems/gems/mail-2.7.1/lib/mail.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/attachments_list.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/body.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/check_delivery_params.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/configuration.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/constants.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/core_extensions
/usr/share/gems/gems/mail-2.7.1/lib/mail/core_extensions/smtp.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/core_extensions/string.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/address.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/address_list.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/content_disposition_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/content_location_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/content_transfer_encoding_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/content_type_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/date_time_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/envelope_from_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/message_ids_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/mime_version_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/phrase_list.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/elements/received_element.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings/7bit.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings/8bit.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings/base64.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings/binary.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings/identity.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings/quoted_printable.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings/transfer_encoding.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/encodings/unix_to_unix.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/envelope.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/field_list.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/bcc_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/cc_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/comments_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/common
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/common/address_container.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/common/common_address.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/common/common_date.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/common/common_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/common/common_message_id.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/common/parameter_hash.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/content_description_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/content_disposition_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/content_id_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/content_location_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/content_transfer_encoding_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/content_type_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/date_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/from_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/in_reply_to_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/keywords_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/message_id_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/mime_version_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/optional_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/received_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/references_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/reply_to_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/resent_bcc_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/resent_cc_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/resent_date_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/resent_from_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/resent_message_id_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/resent_sender_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/resent_to_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/return_path_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/sender_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/structured_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/subject_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/to_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/fields/unstructured_field.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/header.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/indifferent_hash.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/mail.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/matchers
/usr/share/gems/gems/mail-2.7.1/lib/mail/matchers/attachment_matchers.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/matchers/has_sent_mail.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/message.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/multibyte
/usr/share/gems/gems/mail-2.7.1/lib/mail/multibyte.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/multibyte/chars.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/multibyte/unicode.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/multibyte/utils.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network
/usr/share/gems/gems/mail-2.7.1/lib/mail/network.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/delivery_methods
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/delivery_methods/exim.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/delivery_methods/file_delivery.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/delivery_methods/logger_delivery.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/delivery_methods/sendmail.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp_connection.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/delivery_methods/test_mailer.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/retriever_methods
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/retriever_methods/base.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/retriever_methods/imap.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/retriever_methods/pop3.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/network/retriever_methods/test_retriever.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parser_tools.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/address_lists_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/address_lists_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/content_disposition_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/content_disposition_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/content_location_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/content_location_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/content_transfer_encoding_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/content_transfer_encoding_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/content_type_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/content_type_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/date_time_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/date_time_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/envelope_from_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/envelope_from_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/message_ids_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/message_ids_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/mime_version_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/mime_version_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/phrase_lists_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/phrase_lists_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/received_parser.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/received_parser.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc2045_content_transfer_encoding.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc2045_content_type.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc2045_mime.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc2183_content_disposition.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc3629_utf8.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc5234_abnf_core_rules.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc5322.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc5322_address.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc5322_date_time.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/parsers/rfc5322_lexical_tokens.rl
/usr/share/gems/gems/mail-2.7.1/lib/mail/part.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/parts_list.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/utilities.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/values
/usr/share/gems/gems/mail-2.7.1/lib/mail/values/unicode_tables.dat
/usr/share/gems/gems/mail-2.7.1/lib/mail/version.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/version_specific
/usr/share/gems/gems/mail-2.7.1/lib/mail/version_specific/ruby_1_8.rb
/usr/share/gems/gems/mail-2.7.1/lib/mail/version_specific/ruby_1_9.rb
/usr/share/gems/specifications/mail-2.7.1.gemspec
References
Summary
In this tutorial we learn how to install rubygem-mail
on CentOS 8 using yum and dnf.