Skip to content

Instantly share code, notes, and snippets.

@zzag
Last active December 20, 2020 10:35
Show Gist options
  • Save zzag/94d3c9c522332e0186d01b4636a391fe to your computer and use it in GitHub Desktop.
Save zzag/94d3c9c522332e0186d01b4636a391fe to your computer and use it in GitHub Desktop.
Pacman post transaction PackageKit hook

Create 90-refresh-packagekit.hook file in /etc/pacman.d/hooks/ with the following contents

[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = *

[Action]
Description = Refresh PackageKit
Depends = packagekit
Depends = systemd
When = PostTransaction
Exec = /usr/bin/busctl call --system org.freedesktop.PackageKit /org/freedesktop/PackageKit org.freedesktop.PackageKit StateHasChanged s posttrans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment