User Tools

Site Tools


howto:mint-update-manager

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howto:mint-update-manager [2026/06/24 00:16] – created Wuffhowto:mint-update-manager [2026/07/07 17:29] (current) Wuff
Line 3: Line 3:
 To permanently allow a user to install updates via update manager in Linux Mint, a policy needs to be added to PolicyKit (polkit): To permanently allow a user to install updates via update manager in Linux Mint, a policy needs to be added to PolicyKit (polkit):
  
 +This is if the currently logged in user. Replace $USER if necessary.
 <code bash> <code bash>
-vi /etc/polkit-1/rules.d/99-mintupdate.rules +sudo tee /etc/polkit-1/rules.d/99-mintupdate.rules > /dev/null << EOF 
-</code> +polkit.addRule(function(action, subject) { 
-replace 'username' with the actual user +    if (action.id == "org.aptkit.install-or-remove-packages" && 
-<code javascript> +        subject.user == "$USER") {
-javascriptpolkit.addRule(function(action, subject) { +
-    if ((action.id == "com.linuxmint.updates.install" || +
-         action.id == "org.freedesktop.packagekit.package-install" || +
-         action.id == "org.freedesktop.packagekit.package-update"&& +
-        subject.user == "username") {+
         return polkit.Result.YES;         return polkit.Result.YES;
     }     }
 }); });
 +EOF
 </code> </code>
 then either reboot or restart the polkit service: then either reboot or restart the polkit service:
howto/mint-update-manager.1782256582.txt.gz · Last modified: by Wuff