12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Setup Automatic Updates on Debian</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Automatic Updates on Linux,Unattended Upgrades on Debian,Unattended Upgrades,Automatic Updates,Debian,Linux,Updates,Automation,Debian 11,Linux Tutorial,Debian 10,Automatic Upgrades,Unattended Updates,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Setup Automatic Updates on Debian">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Setup Automatic Updates on Debian</h1>
- </div>
- <div></div>
- <div id="content">
- <ol>
- <li>Log into the Debian device</li>
- <li>Run the following commands in a terminal:
- <div class="codeBlock"># update software repositories<br />
- sudo apt update<br />
- # install software updates<br />
- sudo apt upgrade -y<br />
- # install unattended-upgrades<br />
- sudo apt install unattended-upgrades -y<br />
- # edit unattended-upgrades config<br />
- sudo nano /etc/apt/apt.conf.d/50unattended-upgrades</div>
- </li>
- <li>Update the unattended-upgrades conf as needed
- <p><em>Uncomment the ::Mail line and edit the email address to receive email notifications</em><br />
- <br />
- Unattended-Upgrade::Mail "i12bretro@i12bretro.local";<br />
- <br />
- <em>Uncomment and set the value to true to automatically remove unused dependencies</em><br />
- <br />
- Unattended-Upgrade::Remove-Unused-Dependencies "true";</p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes</li>
- <li>Continue with the following commands
- <div class="codeBlock"># at the prompt, select Yes to enable automatic updates<br />
- sudo dpkg-reconfigure --priority=low unattended-upgrades<br />
- # enable and start the unattended upgrades service<br />
- sudo systemctl enable unattended-upgrades --now</div>
- </li>
- <li>That's it, updates will now be installed automatically. Logs can be found in /var/log/unattended-upgrades</li>
- <li>To run updates on demand, simply run the following command
- <div class="codeBlock">sudo unattended-upgrade -d</div>
- </li>
- </ol>
- </div>
- </div>
- </body>
- </html>
-
|