Just what I found.
packagekit package:
/usr/share/doc/packagekit/README.Debian
postinst script for apt (the script that is run when apt is installed or updated):Note
On my Bookworm that was first installed as Stretch:On a Bookworm installed from the Bookworm installer (and no graphical environment installed):
packagekit package:
/usr/share/doc/packagekit/README.Debian
apt package:The following components of PackageKit aren't shipped in the packages:
- cron job: APT does this already, no need for doubling the functionality
postinst script for apt (the script that is run when apt is installed or updated):
Code:
# Automatically added by dh_installsystemd/13.11.4if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then# The following line should be removed in trixie or trixie+1deb-systemd-helper unmask 'apt-daily-upgrade.timer' >/dev/null || true# was-enabled defaults to true, so new installations run enable.if deb-systemd-helper --quiet was-enabled 'apt-daily-upgrade.timer'; then# Enables the unit on first installation, creates new# symlinks on upgrades if the unit file has changed.deb-systemd-helper enable 'apt-daily-upgrade.timer' >/dev/null || trueelse# Update the statefile to add new symlinks (if any), which need to be# cleaned up on purge. Also remove old symlinks.deb-systemd-helper update-state 'apt-daily-upgrade.timer' >/dev/null || truefifi# End automatically added section# Automatically added by dh_installsystemd/13.11.4if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then# The following line should be removed in trixie or trixie+1deb-systemd-helper unmask 'apt-daily.timer' >/dev/null || true# was-enabled defaults to true, so new installations run enable.if deb-systemd-helper --quiet was-enabled 'apt-daily.timer'; then# Enables the unit on first installation, creates new# symlinks on upgrades if the unit file has changed.deb-systemd-helper enable 'apt-daily.timer' >/dev/null || trueelse# Update the statefile to add new symlinks (if any), which need to be# cleaned up on purge. Also remove old symlinks.deb-systemd-helper update-state 'apt-daily.timer' >/dev/null || truefifi# End automatically added section# Automatically added by dh_installsystemd/13.11.4if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; thenif [ -d /run/systemd/system ]; thensystemctl --system daemon-reload >/dev/null || trueif [ -n "$2" ]; then_dh_action=restartelse_dh_action=startfideb-systemd-invoke $_dh_action 'apt-daily-upgrade.timer' 'apt-daily.timer' >/dev/null || truefifi# End automatically added section
# was-enabled defaults to true, so new installations run enable.
On my Bookworm that was first installed as Stretch:
Code:
$> systemctl status apt-daily-upgrade.timer○ apt-daily-upgrade.timer - Daily apt upgrade and clean activities Loaded: loaded (/lib/systemd/system/apt-daily-upgrade.timer; disabled; preset: enabled) Active: inactive (dead) Trigger: n/a Triggers: ● apt-daily-upgrade.service$> systemctl status apt-daily-upgrade.service○ apt-daily-upgrade.service - Daily apt upgrade and clean activities Loaded: loaded (/lib/systemd/system/apt-daily-upgrade.service; static) Active: inactive (dead) Docs: man:apt(8)$> systemctl list-timersNEXT LEFT LAST PASSED UNIT ACTIVATES Mon 2024-05-20 22:32:16 CEST 22min left Mon 2024-05-20 21:31:47 CEST 38min ago anacron.timer anacron.serviceTue 2024-05-21 00:00:00 CEST 1h 49min left - - dpkg-db-backup.timer dpkg-db-backup.serviceTue 2024-05-21 00:00:00 CEST 1h 49min left Mon 2024-05-20 00:00:01 CEST 22h ago exim4-base.timer exim4-base.serviceTue 2024-05-21 00:00:00 CEST 1h 49min left Mon 2024-05-20 00:00:01 CEST 22h ago logrotate.timer logrotate.serviceTue 2024-05-21 03:57:00 CEST 5h 47min left Mon 2024-05-20 01:03:16 CEST 21h ago man-db.timer man-db.serviceTue 2024-05-21 11:52:47 CEST 13h left Mon 2024-05-20 12:47:32 CEST 9h ago plocate-updatedb.timer plocate-updatedb.serviceTue 2024-05-21 20:45:09 CEST 22h left Mon 2024-05-20 20:45:09 CEST 1h 24min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.serviceSun 2024-05-26 03:10:05 CEST 5 days left Sun 2024-05-19 03:10:12 CEST 1 day 18h ago e2scrub_all.timer e2scrub_all.service8 timers listed.Pass --all to see loaded but inactive timers, too.
Code:
#> systemctl status apt-daily-upgrade.timer● apt-daily-upgrade.timer - Daily apt upgrade and clean activities Loaded: loaded (/lib/systemd/system/apt-daily-upgrade.timer; enabled; preset: enabled) Active: active (waiting) since Mon 2024-05-20 20:55:29 CEST; 1h 12min ago Trigger: Tue 2024-05-21 06:46:11 CEST; 8h left Triggers: ● apt-daily-upgrade.servicemai 20 20:55:29 debvirt12 systemd[1]: Started apt-daily-upgrade.timer - Daily apt upgrade and clean activities.#> systemctl status apt-daily-upgrade.service○ apt-daily-upgrade.service - Daily apt upgrade and clean activities Loaded: loaded (/lib/systemd/system/apt-daily-upgrade.service; static) Active: inactive (dead) since Mon 2024-05-20 21:09:18 CEST; 59min agoTriggeredBy: ● apt-daily-upgrade.timer Docs: man:apt(8) Process: 830 ExecStartPre=/usr/lib/apt/apt-helper wait-online (code=exited, status=0/SUCCESS) Process: 834 ExecStart=/usr/lib/apt/apt.systemd.daily install (code=exited, status=0/SUCCESS) Main PID: 834 (code=exited, status=0/SUCCESS) CPU: 562msmai 20 21:09:16 debvirt12 systemd[1]: Starting apt-daily-upgrade.service - Daily apt upgrade and clean activities...mai 20 21:09:18 debvirt12 systemd[1]: apt-daily-upgrade.service: Deactivated successfully.mai 20 21:09:18 debvirt12 systemd[1]: Finished apt-daily-upgrade.service - Daily apt upgrade and clean activities.#> systemctl list-timersNEXT LEFT LAST PASSED UNIT ACTIVATES Mon 2024-05-20 22:17:05 CEST 7min left Fri 2024-04-26 17:57:05 CEST 3 weeks 3 days ago fstrim.timer fstrim.serviceTue 2024-05-21 00:00:00 CEST 1h 50min left - - dpkg-db-backup.timer dpkg-db-backup.serviceTue 2024-05-21 00:00:00 CEST 1h 50min left Mon 2024-05-20 13:53:49 CEST 8h ago exim4-base.timer exim4-base.serviceTue 2024-05-21 00:00:00 CEST 1h 50min left Mon 2024-05-20 13:53:49 CEST 8h ago logrotate.timer logrotate.serviceTue 2024-05-21 06:43:20 CEST 8h left Fri 2024-04-26 23:10:55 CEST 3 weeks 2 days ago apt-daily.timer apt-daily.serviceTue 2024-05-21 06:46:11 CEST 8h left Mon 2024-05-20 21:09:16 CEST 1h 0min ago apt-daily-upgrade.timer apt-daily-upgrade.serviceTue 2024-05-21 07:33:31 CEST 9h left Tue 2024-05-07 11:48:13 CEST 1 week 6 days ago man-db.timer man-db.serviceTue 2024-05-21 21:10:41 CEST 23h left Mon 2024-05-20 21:10:41 CEST 59min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.serviceSun 2024-05-26 03:10:54 CEST 5 days left Mon 2024-05-20 13:54:20 CEST 8h ago e2scrub_all.timer e2scrub_all.service9 timers listed.Pass --all to see loaded but inactive timers, too.
Statistics: Posted by fabien — 2024-05-20 20:21 — Replies 6 — Views 204