How To Install fetchmail on Fedora 34

fetchmail is A remote mail retrieval and forwarding utility

Introduction

In this tutorial we learn how to install fetchmail on Fedora 34.

What is fetchmail

Fetchmail is a remote mail retrieval and forwarding utility intended for use over on-demand TCP/IP links, like SLIP or PPP connections. Fetchmail supports every remote-mail protocol currently in use on the Internet (POP2, POP3, RPOP, APOP, KPOP, all IMAPs, ESMTP ETRN, IPv6, and IPSEC) for retrieval. Then Fetchmail forwards the mail through SMTP so you can read it through your favorite mail client. Install fetchmail if you need to retrieve mail over SLIP or PPP connections.

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

Install fetchmail on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install fetchmail using dnf by running the following command:

sudo dnf -y install fetchmail

Install fetchmail on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install fetchmail using yum by running the following command:

sudo yum -y install fetchmail

How To Uninstall fetchmail on Fedora 34

To uninstall only the fetchmail package we can use the following command:

sudo dnf remove fetchmail

fetchmail Package Contents on Fedora 34

/etc/fetchmailrc.example
/usr/bin/fetchmail
/usr/lib/.build-id
/usr/lib/.build-id/45
/usr/lib/.build-id/45/161c91e139aad05e767e26b36912ec5be8dce3
/usr/lib/systemd/system/fetchmail.service
/usr/share/doc/fetchmail
/usr/share/doc/fetchmail/COPYING
/usr/share/doc/fetchmail/FAQ
/usr/share/doc/fetchmail/FEATURES
/usr/share/doc/fetchmail/NEWS
/usr/share/doc/fetchmail/NOTES
/usr/share/doc/fetchmail/README
/usr/share/doc/fetchmail/README.SSL
/usr/share/doc/fetchmail/TODO
/usr/share/locale/ca/LC_MESSAGES/fetchmail.mo
/usr/share/locale/cs/LC_MESSAGES/fetchmail.mo
/usr/share/locale/da/LC_MESSAGES/fetchmail.mo
/usr/share/locale/de/LC_MESSAGES/fetchmail.mo
/usr/share/locale/en_GB/LC_MESSAGES/fetchmail.mo
/usr/share/locale/eo/LC_MESSAGES/fetchmail.mo
/usr/share/locale/es/LC_MESSAGES/fetchmail.mo
/usr/share/locale/fr/LC_MESSAGES/fetchmail.mo
/usr/share/locale/id/LC_MESSAGES/fetchmail.mo
/usr/share/locale/it/LC_MESSAGES/fetchmail.mo
/usr/share/locale/ja/LC_MESSAGES/fetchmail.mo
/usr/share/locale/nl/LC_MESSAGES/fetchmail.mo
/usr/share/locale/pl/LC_MESSAGES/fetchmail.mo
/usr/share/locale/ro/LC_MESSAGES/fetchmail.mo
/usr/share/locale/ru/LC_MESSAGES/fetchmail.mo
/usr/share/locale/sq/LC_MESSAGES/fetchmail.mo
/usr/share/locale/sr/LC_MESSAGES/fetchmail.mo
/usr/share/locale/sv/LC_MESSAGES/fetchmail.mo
/usr/share/locale/vi/LC_MESSAGES/fetchmail.mo
/usr/share/locale/zh_CN/LC_MESSAGES/fetchmail.mo
/usr/share/man/man1/fetchmail.1.gz
/etc/fetchmailrc.example
/usr/bin/fetchmail
/usr/lib/.build-id
/usr/lib/.build-id/88
/usr/lib/.build-id/88/a8b7bc37d1888de11c1f5f680050ab997b8cd5
/usr/lib/systemd/system/fetchmail.service
/usr/share/doc/fetchmail
/usr/share/doc/fetchmail/COPYING
/usr/share/doc/fetchmail/FAQ
/usr/share/doc/fetchmail/FEATURES
/usr/share/doc/fetchmail/NEWS
/usr/share/doc/fetchmail/NOTES
/usr/share/doc/fetchmail/README
/usr/share/doc/fetchmail/README.SSL
/usr/share/doc/fetchmail/TODO
/usr/share/locale/ca/LC_MESSAGES/fetchmail.mo
/usr/share/locale/cs/LC_MESSAGES/fetchmail.mo
/usr/share/locale/da/LC_MESSAGES/fetchmail.mo
/usr/share/locale/de/LC_MESSAGES/fetchmail.mo
/usr/share/locale/en_GB/LC_MESSAGES/fetchmail.mo
/usr/share/locale/eo/LC_MESSAGES/fetchmail.mo
/usr/share/locale/es/LC_MESSAGES/fetchmail.mo
/usr/share/locale/fr/LC_MESSAGES/fetchmail.mo
/usr/share/locale/id/LC_MESSAGES/fetchmail.mo
/usr/share/locale/it/LC_MESSAGES/fetchmail.mo
/usr/share/locale/ja/LC_MESSAGES/fetchmail.mo
/usr/share/locale/nl/LC_MESSAGES/fetchmail.mo
/usr/share/locale/pl/LC_MESSAGES/fetchmail.mo
/usr/share/locale/ro/LC_MESSAGES/fetchmail.mo
/usr/share/locale/ru/LC_MESSAGES/fetchmail.mo
/usr/share/locale/sq/LC_MESSAGES/fetchmail.mo
/usr/share/locale/sr/LC_MESSAGES/fetchmail.mo
/usr/share/locale/sv/LC_MESSAGES/fetchmail.mo
/usr/share/locale/vi/LC_MESSAGES/fetchmail.mo
/usr/share/locale/zh_CN/LC_MESSAGES/fetchmail.mo
/usr/share/man/man1/fetchmail.1.gz

References

Summary

In this tutorial we learn how to install fetchmail on Fedora 34 using yum and dnf.