How to Disable/Enable Automatic Updates in Red Hat Enterprise Linux 7
Automatic updates are a convenient way to ensure your Red Hat Enterprise Linux 7 system is always up-to-date with the latest security patches and bug fixes. However, there may be times when you want to disable or enable automatic updates for various reasons. In this article, we will walk you through the steps to disable or enable automatic updates in Red Hat Enterprise Linux 7.
Disable Automatic Updates
To disable automatic updates in Red Hat Enterprise Linux 7, follow these steps:
- Open a terminal window.
- Log in as the root user.
- Disable the yum-cron service by running the following command:
systemctl disable yum-cron.service
Once you have disabled the yum-cron service, automatic updates will no longer run on your system.
Enable Automatic Updates
If you decide that you want to enable automatic updates again, follow these steps:
- Open a terminal window.
- Log in as the root user.
- Enable the yum-cron service by running the following command:
systemctl enable yum-cron.service
After enabling the yum-cron service, automatic updates will be activated on your Red Hat Enterprise Linux 7 system.
Remember to regularly check for updates manually even if you have automatic updates enabled to ensure your system is always secure and up-to-date.
By following these steps, you can easily disable or enable automatic updates in Red Hat Enterprise Linux 7 based on your preferences and needs.