You can also replace 'unix-user:<user-name>' with 'unix-group:<group-name>'. A semicolon-separated list is also allowed. You can of course set all three 'Result*' to 'yes' if you wish. And the title "Allow myself ..." is also entirely arbitrary. See more in 'man 8 pklocalauthority'. Type 'pkaction' for a list of other actions you can tweak the authorisation requirements for.
@Nicolò:
Create a file /var/lib/ polkit- 1/localauthorit y/50-local. d/localhost. pkla (as root) with the following contents:
[Allow myself updating packages] unix-user: <user-name> org.debian. apt.update- cache
Identity=
Action=
ResultAny=no
ResultInactive=no
ResultActive=yes
You can also replace 'unix-user: <user-name> ' with 'unix-group: <group- name>'. A semicolon-separated list is also allowed. You can of course set all three 'Result*' to 'yes' if you wish. And the title "Allow myself ..." is also entirely arbitrary. See more in 'man 8 pklocalauthority'. Type 'pkaction' for a list of other actions you can tweak the authorisation requirements for.