Last active
September 18, 2024 13:25
-
-
Save tchayintr/f6f6733c6a9b1c5f414788359ff9fd9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uname -r # To check current kernal version | |
| sudo vim /etc/apt/apt.conf.d/50unattended-upgrades | |
| ``` | |
| Unattended-Upgrade::Allowed-Origins { | |
| "${distro_id}:${distro_codename}"; | |
| "${distro_id}:${distro_codename}-security"; | |
| "${distro_id}ESMApps:${distro_codename}-apps-security"; | |
| "${distro_id}ESM:${distro_codename}-infra-security"; | |
| // "${distro_id}:${distro_codename}-updates"; | |
| // "${distro_id}:${distro_codename}-proposed"; | |
| // "${distro_id}:${distro_codename}-backports"; | |
| }; | |
| Unattended-Upgrade::Package-Blacklist { | |
| "linux-image"; | |
| "linux-headers"; | |
| }; | |
| ``` | |
| # Do not run `sudo apt-get upgrade` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment