The above configuration will update package lists, download packages, and install available upgrades daily. This keeps the APT cache at a reasonable size and means that you don’t need to worry about that task. It should look like this: APT::Periodic::Update-Package-Lists "1" ĪPT::Periodic::Update-Package-Lists – allows you to specify the frequency (in days) at which the package lists are refreshed.ĪPT::Periodic::Unattended-Upgrade – When enabled, the daily script will execute unattended-upgrade.ĪPT::Periodic::Download-Upgradeable-Packages – Frequency (in days) for the downloading of the actual packages.ĪPT::Periodic::AutocleanInterval – It controls how often obsolete packages are removed from the APT cache. To confirm, take a look at the config file: /etc/apt//20auto-upgrades. If you have any questions, post them below.īy default, unattended upgrades will install available updates daily. The remainder of the config file is self-explanatory. Here’s an example of unattended-upgrades mail config: You can also leave it set to the default “root” to send email reports to the server’s root account. Find this line: //Unattended-Upgrade::Mail "root" Ĭhange it to: Unattended-Upgrade::Mail "replacewithyouremail" Enabling this is reasonable if you want new features but don’t want your system to be unstable. In effect, it saves you the hassle of broken dependencies and major downloads. However, they are compiled specifically for your version of Ubuntu. Thus, they can contain new features but may also break compatibility with their older version. The section that controls what packages are updated automatically starts with Unattended-Upgrade::Allowed-Origins -backports” – Backported updates are pieces of software that come from a newer major release. Therefore, to “enable” a line, remove the double slash //. Lines starting with a double slash // have no effect. The unattended-upgrades config file location is /etc/apt//50unattended-upgrades. On both Debian and Ubuntu, as Ubuntu is a derivative of Debian. It does this by extracting the relevant entries from the NEWS.Debian and changelog files, usually found in /usr/share/doc/ package, from Debian package archives. apt-listchanges is a tool to show what has been changed in a new version of a Debian package compared to the version currently installed on the system. The apt-listchanges can be configured to send emails about update changes. You can also monitor changes by installing the apt-listchanges package (optional). Remember, you’ll want to monitor updates and changes to your Linux server over time. You can monitor via /var/log/dpkg.log or read the log files in /var/log/unattended-upgrades/. To install the unattended-upgrades package, enter the following in your terminal: sudo apt update & sudo apt upgrade Recent releases of Ubuntu also come with unattended-upgrades installed by default. With that said, let’s jump right in!Īs of Debian 9, both the unattended-upgrades and apt-listchanges packages are installed by default. While there are reasons to be cautious, it is also worth considering. In general, on critical servers where you cannot afford unplanned downtime should be very careful with unattended-upgrades (or automatic updates).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |