In the article I want to restart CentOS8 on time every day, I created an environment to restart CentOS8 every day.
But I noticed one thing. ** Oh, this kid has only restarted ... ** That's right. .. It can be troublesome if the package is automatically updated by restarting. .. (Due to dependencies or religious reasons ** I didn't dare to update the package **, but it collapses)
So I decided to include the package update script in my daily reboot.
Below.
python
dnf check-update
It looks like this. Something is coming.
So you can use the dnf
command to control things around package updates.
What is Gorilla Update? ** Update everything that's coming because it doesn't matter! I'll do something about the rest! ** ** It is a powerful update method allowed only for the strong man.
Gorilla update command
dnf upgrade -y --allowerasing
-y
, "Can I execute it?" 』Skip the step of confirmation. --allowerasing
, I am telling CentOS8 that I am prepared to remove the installed packages to resolve the dependency. (Without this, when it becomes necessary to resolve the dependency, an error like "What should I do with this?" Will occur and the update will not run.)
What is an orangutan update? ** Only security and important updates are automatically updated for the time being! Other than that, "Hey, wait! Do not update with ** It is a wise update method.
Orangutan update command
dnf upgrade-minimal -y --security
upgrade-minimal
, ** only important updates ** are limited. --security
, only the packages that require security update are narrowed down.If it is a home server or a development server, I think that the following usages should be balanced.
https://qiita.com/yasushi-jp/items/0dc7f413632927f92286 https://www.atmarkit.co.jp/ait/articles/2001/09/news018.html https://www.atmarkit.co.jp/ait/articles/2002/06/news010.html https://blog.luispc.com/entry/2019/12/05/214513
CentOS Linux release 8.3.2011