As for why sudo is there, whenever the download directory for the repositories is rm'd for cleanup, I get a confirmation prompts for each subdirectory:
rm -r repositories/ rm: descend into write-protected directory 'repositories/'? y rm: descend into write-protected directory 'repositories/calculator' ...
So I just use sudo to skip said prompts and documented it.