{"id":5112,"date":"2024-07-04T13:13:34","date_gmt":"2024-07-04T20:13:34","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=5112"},"modified":"2024-07-04T13:13:37","modified_gmt":"2024-07-04T20:13:37","slug":"how-to-set-up-software-updates-automatically-on-oracle-linux","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=5112","title":{"rendered":"How to Set up Software Updates Automatically on\u00a0Oracle Linux"},"content":{"rendered":"\n<p>Regardless of whether you use ULN or an&nbsp;Oracle Linux&nbsp;yum server, software updates are achieved using standard&nbsp;<kbd>dnf<\/kbd>&nbsp;commands on the system and depend on the system having the appropriate ULN channel subscriptions or yum repositories enabled.<\/p>\n\n\n\n<p>You can use the&nbsp;<kbd>dnf install<\/kbd>&nbsp;and&nbsp;<kbd>dnf update<\/kbd>&nbsp;commands to handle general package installation or updates.<\/p>\n\n\n\n<p>To update a system to use the latest packages that are available, run:<\/p>\n\n\n\n<p><code><strong>sudo dnf upgrade<\/strong><\/code><\/p>\n\n\n\n<p>Note:<\/p>\n\n\n\n<p>The&nbsp;<code>dnf update<\/code>&nbsp;command automatically runs&nbsp;<code>dnf upgrade<\/code>.<\/p>\n\n\n\n<p>Update the system often to ensure that packages have the latest security patches and bug fixes. Consider using automatic updates so that software is correctly maintained on the system.<\/p>\n\n\n\n<p>Note than if you use the&nbsp;<kbd>dnf install<\/kbd>&nbsp;command for software that&#8217;s already installed, the software packages that you specify are also updated to the latest available version.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"OLULN-update-software-automatically\">Updating Software Automatically<\/h3>\n\n\n\n<p>The DNF Automatic tool is provided as an extra package that you can use to keep the system automatically updated with the latest security patches and bug fixes. The tool can provide notifications of updates, download updates, and then install them automatically by using systemd timers.<\/p>\n\n\n\n<p>You can install the\u00a0<code>dnf-automatic<\/code>\u00a0package and enable the systemd\u00a0<code>dnf-automatic.timer<\/code>\u00a0timer unit to start using this service:<\/p>\n\n\n\n<p><code><strong>sudo dnf install -y dnf-automatic<\/strong><\/code><\/p>\n\n\n\n<p><code><strong>sudo systemctl enable --now dnf-automatic.timer<\/strong><\/code><\/p>\n\n\n\n<p>You configure the DNF Automatic tool by editing the&nbsp;<code>\/etc\/dnf\/automatic.conf<\/code>&nbsp;configuration file and then restarting the timer unit.<\/p>\n\n\n\n<p>Note that other timer units are available and can override the default configuration that&#8217;s specified in the configuration file. Often, these timer units are used as handy shortcuts to perform a specific behavior:<\/p>\n\n\n\n<ul class=\"wp-block-list\" id=\"update-software-automatically__ul_pwz_jw3_psb\">\n<li><code>dnf-automatic-notifyonly.timer<\/code>: Notifies for available updates<\/li>\n\n\n\n<li><code>dnf-automatic-download.timer<\/code>: Downloads package updates, but doesn&#8217;t install them<\/li>\n\n\n\n<li><code>dnf-automatic-install.timer<\/code>: Downloads and automatically installs package updates<\/li>\n<\/ul>\n\n\n\n<p>You enable the required behavior by running:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><code><strong>sudo systemctl enable --now <em>dnf-automatic-install.timer<\/em><\/strong><\/code><\/p>\n\n\n\n<p>See the&nbsp;<code>dnf-automatic(8)<\/code>&nbsp;manual page for more information.<\/p>\n\n\n\n<p>Important:<\/p>\n\n\n\n<p>By using Oracle Ksplice, you can keep an\u00a0Oracle Linux\u00a0kernel patched and updated all the time, without any need to reboot. For\u00a0Oracle Linux\u00a0Support customers, Ksplice is an essential tool to keep the systems safe, secure, and updated. See\u00a0<a href=\"https:\/\/docs.oracle.com\/en\/operating-systems\/oracle-linux\/ksplice-user\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle Linux: Ksplice User&#8217;s Guide<\/a>\u00a0for more information.<\/p>\n\n\n\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n\n\n\n<p>Anohter solution<\/p>\n\n\n\n<p><strong>sudo vim \/etc\/dnf\/automatic.conf<\/strong><\/p>\n\n\n\n<p>Change &#8220;apply_updates&#8221; from no to yes<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"454\" height=\"44\" src=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/07\/image.png\" alt=\"\" class=\"wp-image-5113\" srcset=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/07\/image.png 454w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/07\/image-300x29.png 300w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"729\" src=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/07\/image-1-1024x729.png\" alt=\"\" class=\"wp-image-5114\" srcset=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/07\/image-1-1024x729.png 1024w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/07\/image-1-300x214.png 300w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/07\/image-1-768x547.png 768w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2024\/07\/image-1.png 1110w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regardless of whether you use ULN or an&nbsp;Oracle Linux&nbsp;yum server, software updates are achieved using standard&nbsp;dnf&nbsp;commands on the system and depend on the system having the appropriate ULN channel subscriptions or yum repositories enabled. You can use the&nbsp;dnf install&nbsp;and&nbsp;dnf update&nbsp;commands to handle general package installation or updates. To update a system to use the latest <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=5112\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[262,5],"tags":[1793,1792],"class_list":["post-5112","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","tag-set-up-software-updating-automatically-on-linux","tag-set-up-software-updating-automatically-on-oracle-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5112"}],"version-history":[{"count":1,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5112\/revisions"}],"predecessor-version":[{"id":5115,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5112\/revisions\/5115"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}