How To Install offlineimap on Fedora 34

offlineimap is Powerful IMAP/Maildir synchronization and reader support

Introduction

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

What is offlineimap

OfflineIMAP is a tool to simplify your e-mail reading. With OfflineIMAP, you can read the same mailbox from multiple computers. You get a current copy of your messages on each computer, and changes you make one place will be visible on all other systems. For instance, you can delete a message on your home computer, and it will appear deleted on your work computer as well. OfflineIMAP is also useful if you want to use a mail reader that does not have IMAP support, has poor IMAP support, or does not provide disconnected operation.

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

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

sudo dnf -y install offlineimap

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

sudo yum -y install offlineimap

How To Uninstall offlineimap on Fedora 34

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

sudo dnf remove offlineimap

offlineimap Package Contents on Fedora 34

/usr/bin/offlineimap
/usr/lib/python3.9/site-packages/offlineimap
/usr/lib/python3.9/site-packages/offlineimap-7.3.0-py3.9.egg-info
/usr/lib/python3.9/site-packages/offlineimap/CustomConfig.py
/usr/lib/python3.9/site-packages/offlineimap/__init__.py
/usr/lib/python3.9/site-packages/offlineimap/__pycache__
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/CustomConfig.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/CustomConfig.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/accounts.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/accounts.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/error.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/error.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/globals.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/globals.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/imaplib2.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/imaplib2.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/imaplibutil.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/imaplibutil.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/imapserver.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/imapserver.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/imaputil.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/imaputil.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/init.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/init.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/localeval.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/localeval.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/mbnames.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/mbnames.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/threadutil.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/__pycache__/threadutil.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/accounts.py
/usr/lib/python3.9/site-packages/offlineimap/error.py
/usr/lib/python3.9/site-packages/offlineimap/folder
/usr/lib/python3.9/site-packages/offlineimap/folder/Base.py
/usr/lib/python3.9/site-packages/offlineimap/folder/Gmail.py
/usr/lib/python3.9/site-packages/offlineimap/folder/GmailMaildir.py
/usr/lib/python3.9/site-packages/offlineimap/folder/IMAP.py
/usr/lib/python3.9/site-packages/offlineimap/folder/LocalStatus.py
/usr/lib/python3.9/site-packages/offlineimap/folder/LocalStatusSQLite.py
/usr/lib/python3.9/site-packages/offlineimap/folder/Maildir.py
/usr/lib/python3.9/site-packages/offlineimap/folder/UIDMaps.py
/usr/lib/python3.9/site-packages/offlineimap/folder/__init__.py
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/Base.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/Base.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/Gmail.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/Gmail.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/GmailMaildir.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/GmailMaildir.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/IMAP.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/IMAP.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/LocalStatus.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/LocalStatus.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/LocalStatusSQLite.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/LocalStatusSQLite.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/Maildir.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/Maildir.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/UIDMaps.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/UIDMaps.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/folder/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/globals.py
/usr/lib/python3.9/site-packages/offlineimap/imaplib2.py
/usr/lib/python3.9/site-packages/offlineimap/imaplibutil.py
/usr/lib/python3.9/site-packages/offlineimap/imapserver.py
/usr/lib/python3.9/site-packages/offlineimap/imaputil.py
/usr/lib/python3.9/site-packages/offlineimap/init.py
/usr/lib/python3.9/site-packages/offlineimap/localeval.py
/usr/lib/python3.9/site-packages/offlineimap/mbnames.py
/usr/lib/python3.9/site-packages/offlineimap/repository
/usr/lib/python3.9/site-packages/offlineimap/repository/Base.py
/usr/lib/python3.9/site-packages/offlineimap/repository/Gmail.py
/usr/lib/python3.9/site-packages/offlineimap/repository/GmailMaildir.py
/usr/lib/python3.9/site-packages/offlineimap/repository/IMAP.py
/usr/lib/python3.9/site-packages/offlineimap/repository/LocalStatus.py
/usr/lib/python3.9/site-packages/offlineimap/repository/Maildir.py
/usr/lib/python3.9/site-packages/offlineimap/repository/__init__.py
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/Base.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/Base.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/Gmail.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/Gmail.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/GmailMaildir.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/GmailMaildir.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/IMAP.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/IMAP.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/LocalStatus.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/LocalStatus.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/Maildir.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/Maildir.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/repository/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/threadutil.py
/usr/lib/python3.9/site-packages/offlineimap/ui
/usr/lib/python3.9/site-packages/offlineimap/ui/Curses.py
/usr/lib/python3.9/site-packages/offlineimap/ui/Machine.py
/usr/lib/python3.9/site-packages/offlineimap/ui/Noninteractive.py
/usr/lib/python3.9/site-packages/offlineimap/ui/TTY.py
/usr/lib/python3.9/site-packages/offlineimap/ui/UIBase.py
/usr/lib/python3.9/site-packages/offlineimap/ui/__init__.py
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/Curses.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/Curses.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/Machine.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/Machine.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/Noninteractive.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/Noninteractive.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/TTY.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/TTY.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/UIBase.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/UIBase.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/debuglock.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/__pycache__/debuglock.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/ui/debuglock.py
/usr/lib/python3.9/site-packages/offlineimap/utils
/usr/lib/python3.9/site-packages/offlineimap/utils/__init__.py
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__/const.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__/const.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__/distro_utils.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__/distro_utils.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__/stacktrace.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/offlineimap/utils/__pycache__/stacktrace.cpython-39.pyc
/usr/lib/python3.9/site-packages/offlineimap/utils/const.py
/usr/lib/python3.9/site-packages/offlineimap/utils/distro_utils.py
/usr/lib/python3.9/site-packages/offlineimap/utils/stacktrace.py
/usr/share/doc/offlineimap
/usr/share/doc/offlineimap/API.html
/usr/share/doc/offlineimap/dco.html
/usr/share/doc/offlineimap/genindex.html
/usr/share/doc/offlineimap/index.html
/usr/share/doc/offlineimap/offlineimap.conf
/usr/share/doc/offlineimap/offlineimap.conf.minimal
/usr/share/doc/offlineimap/py-modindex.html
/usr/share/doc/offlineimap/repository.html
/usr/share/doc/offlineimap/search.html
/usr/share/doc/offlineimap/ui.html
/usr/share/licenses/offlineimap
/usr/share/licenses/offlineimap/COPYING
/usr/share/man/man1/offlineimap.1.gz
/usr/share/man/man7/offlineimapui.7.gz

References

Summary

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