58% goes to fundraising, administrative and technological costs. The rest has some money going towards, but no limited to, other programs.
Only thing I can find in their financials that would maybe qualify as “random outreach” would be “awards and grants”, at 26mil last year out of 185mil revenue, or 14%.
https://meta.m.wikimedia.org/wiki/Grants:Programs/Wikimedia_Community_Fund
As far as I can tell, it’s not particularly random.
Maybe I’m missing something?
You can run scripts before/after pacman commands using hooks
https://wiki.archlinux.org/title/Pacman#Hooks