How To Install cronie on Fedora 34

cronie is Cron daemon for executing programs at set times

Introduction

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

What is cronie

Cronie contains the standard UNIX daemon crond that runs specified programs at scheduled times and related tools. It is a fork of the original vixie-cron and has security and configuration enhancements like the ability to use pam and SELinux.

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

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

sudo dnf -y install cronie

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

sudo yum -y install cronie

How To Uninstall cronie on Fedora 34

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

sudo dnf remove cronie

cronie Package Contents on Fedora 34

/etc/cron.d
/etc/cron.d/0hourly
/etc/cron.deny
/etc/pam.d/crond
/etc/sysconfig/crond
/lib/systemd/system/crond.service
/usr/bin/cronnext
/usr/bin/crontab
/usr/lib/.build-id
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/d7de2666f844b99c6de21b28656e2947fd6bb9
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/85f014c569ba2a721865d205f51b9f35eca441
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/04de550e93468c41718be127ea2f7fad55e2c9
/usr/sbin/crond
/usr/share/doc/cronie
/usr/share/doc/cronie/AUTHORS
/usr/share/doc/cronie/ChangeLog
/usr/share/doc/cronie/README
/usr/share/licenses/cronie
/usr/share/licenses/cronie/COPYING
/usr/share/man/man1/cronnext.1.gz
/usr/share/man/man1/crontab.1.gz
/usr/share/man/man5/crontab.5.gz
/usr/share/man/man8/cron.8.gz
/usr/share/man/man8/crond.8.gz
/var/spool/cron

References

Summary

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