Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#64328 - [pacman-contrib] checkupdates should not use sudo when run as root

Attached to Project: Community Packages
Opened by nl6720 (nl6720) - Wednesday, 30 October 2019, 12:53 GMT
Last edited by Daniel M. Capella (polyzen) - Friday, 11 December 2020, 20:08 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Johannes Löthberg (demize)
Daniel M. Capella (polyzen)
Architecture All
Severity Low
Priority Low
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No



`checkupdates --download` runs pacman with sudo even if checkupdates is executed as root. root doesn't need to elevate privileges and it creates an unnecessary dependency on sudo.
If sudo in not installed, the following error is shown:
/usr/bin/checkupdates: line 287: sudo: command not found

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any
pacman-contrib 1.2.0-3

Steps to reproduce:
On a systemd without sudo, run checkupdates -d
This task depends upon

Closed by  Daniel M. Capella (polyzen)
Friday, 11 December 2020, 20:08 GMT
Reason for closing:  Fixed
Additional comments about closing: .git/commit/?id=ca89bb69b702222da7f699dd a3ac61ae98c01d6b