Difference between revisions of "APT Automatic updates"
Jump to navigation
Jump to search
(Created page with " Package: <code>unattended-upgrades</code> You can configure and control automatic updates modifying: * enable or disable: <code>/etc/apt/apt.conf.d/20auto-upgrades</code> <...") |
|||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Package: <code>unattended-upgrades</code> | + | Package: <code>unattended-upgrades</code>. To install it: <code>apt install unattended-upgrades</code> |
You can configure and control automatic updates modifying: | You can configure and control automatic updates modifying: | ||
− | * | + | * Enable or disable: <code>[[/etc/apt/apt.conf.d/20auto-upgrades]]</code> <ref>https://help.ubuntu.com/lts/serverguide/automatic-updates.html</ref> |
− | * <code>/etc/apt/apt.conf.d/50unattended-upgrades</code><ref>https://wiki.debian.org/UnattendedUpgrades</ref> | + | * <code>[[/etc/apt/apt.conf.d/50unattended-upgrades]]</code><ref>https://wiki.debian.org/UnattendedUpgrades</ref> |
::<code>cat /etc/apt/apt.conf.d/50unattended-upgrades | grep -v // | grep .</code> | ::<code>cat /etc/apt/apt.conf.d/50unattended-upgrades | grep -v // | grep .</code> | ||
− | |||
− | |||
− | |||
− | |||
− | sudo systemctl disable apt-daily-upgrade.timer | + | Or enabling/disabling [[systemd]] related services: |
− | sudo systemctl disable apt-daily-upgrade.service | + | |
− | + | sudo [[systemctl disable]] apt-daily.service | |
+ | sudo systemctl disable apt-daily.[[timer]] | ||
+ | |||
+ | sudo systemctl disable apt-daily-upgrade.timer | ||
+ | sudo systemctl disable apt-daily-upgrade.service | ||
− | Check status: <code>systemctl list-unit-files | grep apt-daily</code> | + | Check status: |
+ | * <code>[[systemctl status apt-daily]]</code> | ||
+ | * <code>[[systemctl]] list-unit-files | grep apt-daily</code> | ||
− | * List upgradable: <code>apt list updated && apt list --upgradable</code> | + | * List upgradable: <code>[[apt list updated]] && apt list --upgradable</code> |
− | * Review package changelog: <code>[[ | + | * Review package changelog: <code>[[apt changelog]] PACKAGE_NAME</code> |
+ | |||
+ | == Activities == | ||
+ | * Read [[Dpkg changes]] | ||
+ | * [[wajig upgradesecurity]] | ||
==See also== | ==See also== | ||
− | * | + | * {{dpkg}} |
+ | * {{apt}} | ||
* [[Ubuntu Landscape]]: https://landscape.canonical.com/ https://en.wikipedia.org/wiki/Landscape_(software) | * [[Ubuntu Landscape]]: https://landscape.canonical.com/ https://en.wikipedia.org/wiki/Landscape_(software) | ||
Latest revision as of 10:37, 28 October 2021
Package: unattended-upgrades
. To install it: apt install unattended-upgrades
You can configure and control automatic updates modifying:
- Enable or disable:
/etc/apt/apt.conf.d/20auto-upgrades
[1] /etc/apt/apt.conf.d/50unattended-upgrades
[2]
cat /etc/apt/apt.conf.d/50unattended-upgrades | grep -v // | grep .
Or enabling/disabling systemd related services:
sudo systemctl disable apt-daily.service sudo systemctl disable apt-daily.timer sudo systemctl disable apt-daily-upgrade.timer sudo systemctl disable apt-daily-upgrade.service
Check status:
systemctl status apt-daily
systemctl list-unit-files | grep apt-daily
- List upgradable:
apt list updated && apt list --upgradable
- Review package changelog:
apt changelog PACKAGE_NAME
Activities[edit]
See also[edit]
dpkg, dpkg-query
,update-alternatives
[3],ar
,debsums
,dpkg -V
,dpkg -S
,dpkg -L
,dpkg --configure -a
,wajig
,dpkg -i -E
,dpkg --help, dpkg-source-gitarchive
APT
:wajig
,apt-cache
,add-apt-repository
PPA,apt
[install
|remove
|purge | show | list | changelog
|update
|upgrade
],do-release-upgrade
,apt-mark
,apt full-upgrade
,sources.list
, APT Automatic updates,unattended-upgrade
,apt-transport-https
,apt-get update
,/etc/apt/
,/etc/apt/apt.conf.d/50unattended-upgrades
,/etc/apt/apt.conf.d/
,/etc/apt/apt.conf.d/20auto-upgrades
,apt-file, apt-utils
- Ubuntu Landscape: https://landscape.canonical.com/ https://en.wikipedia.org/wiki/Landscape_(software)
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Source: https://en.wikiversity.org/wiki/Linux_server_administration/apt/Automatic_updates
Advertising: