Is that possible ?

Thanks

  • Zamundaaa@discuss.tchncs.de
    ·
    3 months ago

    Yes, and many distros have a polkit rule set up to allow installing or updating without a password. You can likely just copy it from Fedora or sth

      • Zamundaaa@discuss.tchncs.de
        ·
        3 months ago

        Fedora just has

        polkit.addRule(function(action, subject) {
            if ((action.id == "org.freedesktop.packagekit.package-install" ||
                 action.id == "org.freedesktop.packagekit.package-remove") &&
                subject.active == true && subject.local == true &&
                subject.isInGroup("wheel")) {
                    return polkit.Result.YES;
            }
        });
        

        in /usr/share/polkit-1/rules.d/org.freedesktop.packagekit.rules. If you put the same file in there, it should work.

  • MajinBlayze [any, he/him]
    ·
    edit-2
    3 months ago

    For flathub packages, you could switch to user installs instead of system. Settings, then click the up arrow next to flathub (user) (if it's configured, otherwise you'd have to add it)

    It will prevent multiple users from being able to use the same installation of packages, but if you're the only user if the machine it doesn't really matter

    • KaKi87@jlai.lu
      hexagon
      ·
      3 months ago

      Yes but APT packages are the ones requiring the password. Thanks

      • MajinBlayze [any, he/him]
        ·
        3 months ago

        Yeah, I don't think there's any getting around that. Apt package modify the system, and by nature require elevated permissions.