I'm relatively new at this. Our system just got updated. (we never ask that)
Now, I need to disable auto-updates on CentOS Server 7.5.1804
I see a relevant question here but my system has no
packagekit, so the solution does not work for me at least.
What I looking for
A way to disable updates but make sure security updates for the kernel are available
# /etc/yum/yum-cron.conf # What kind of update to use: # default = yum upgrade # security = yum --security upgrade # security-severity:Critical = yum --sec-severity=Critical upgrade # minimal = yum --bugfix update-minimal # minimal-security = yum --security update-minimal # minimal-security-severity:Critical = --sec-severity=Critical update-minimal update_cmd = default # Whether a message should be emitted when updates are available, # were downloaded, or applied. update_messages = yes # Whether updates should be downloaded when they are available. download_updates = yes # Whether updates should be applied when they are available. Note # that download_updates must also be yes for the update to be applied. apply_updates = yes
Do I have to change either of the following
- download_updates (yes => no)
- apply_updates (yes => no)
- update_cmd (default => security)
To achieve that?
Question 2: If I have to disable an update of the specific packages, do I have to follow the below step?
> vi /etc/yum.conf > ## Added this inside yum.conf > exclude=postgresql
If yes, how I can I be sure that the package name given is the correct one? (Essentially I want to disable
i.e whether it is
postgresql-server or something else