Skip to content

Instantly share code, notes, and snippets.

@mauvehed
Last active November 23, 2022 17:02
Show Gist options
  • Save mauvehed/6dfc0e9bf8632e43736a0fbba37cdba2 to your computer and use it in GitHub Desktop.
Save mauvehed/6dfc0e9bf8632e43736a0fbba37cdba2 to your computer and use it in GitHub Desktop.

Revisions

  1. mauvehed renamed this gist Sep 16, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. mauvehed revised this gist Sep 16, 2022. 1 changed file with 10 additions and 28 deletions.
    38 changes: 10 additions & 28 deletions August 27, 2022.md
    Original file line number Diff line number Diff line change
    @@ -1,34 +1,16 @@
    ### Documentation
    https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-22-04-jammy-jellyfish

    Execute the following command to update a server

    ```sudo apt update && sudo apt upgrade```

    Now, install the unattended upgrade on your Ubuntu system through the following command:

    ```sudo apt install unattended-upgrades apt-listchanges bsd-mailx```

    After that, turn on the unattended security updates by running the following command:

    ```sudo dpkg-reconfigure -plow unattended-upgrades```

    After executing the command, configure the automatic update by executing the command given below:

    ```sudo vi /etc/apt/apt.conf.d/50unattended-upgrades```

    Now, you can set up the alert email ID by the below command:

    ```Unattended-Upgrade::Mail "[email protected]";```

    In the above command, you can write your email ID instead of “[email protected]”. In case you want automatically reboot the Ubuntu box without confirmation for the Kernel update, then use the following command:

    ```Unattended-Upgrade::Automatic-Reboot "true";```

    Finally, you can edit the /etc/apt/listchanges.conf and set up the email ID:
    ### Do the thing
    Execute the following command to update a server

    ```[email protected]```
    ```sudo apt update && sudo apt upgrade && sudo apt dist-upgrade```

    You can verify that the setup is working by executing the below command:
    Run release upgrade to either stable or development release

    ```sudo unattended-upgrades --dry-run```
    ```sudo do-release-upgrade```
    or
    ```sudo do-release-upgrade -d```

    The software updater in Ubuntu will also give you update when available. You only need to click on the update option, and the package will be automatically upgraded to a newer version
    Profit.
  3. mauvehed created this gist Aug 27, 2022.
    34 changes: 34 additions & 0 deletions August 27, 2022.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@

    Execute the following command to update a server

    ```sudo apt update && sudo apt upgrade```

    Now, install the unattended upgrade on your Ubuntu system through the following command:

    ```sudo apt install unattended-upgrades apt-listchanges bsd-mailx```

    After that, turn on the unattended security updates by running the following command:

    ```sudo dpkg-reconfigure -plow unattended-upgrades```

    After executing the command, configure the automatic update by executing the command given below:

    ```sudo vi /etc/apt/apt.conf.d/50unattended-upgrades```

    Now, you can set up the alert email ID by the below command:

    ```Unattended-Upgrade::Mail "[email protected]";```

    In the above command, you can write your email ID instead of “[email protected]”. In case you want automatically reboot the Ubuntu box without confirmation for the Kernel update, then use the following command:

    ```Unattended-Upgrade::Automatic-Reboot "true";```

    Finally, you can edit the /etc/apt/listchanges.conf and set up the email ID:

    ```[email protected]```

    You can verify that the setup is working by executing the below command:

    ```sudo unattended-upgrades --dry-run```

    The software updater in Ubuntu will also give you update when available. You only need to click on the update option, and the package will be automatically upgraded to a newer version