adjust accordingly for Fedora and/or snaps. Obviously doesn’t work for appimages or manually compiled stuff which should be a last resort if there’s no other sensible way to install stuff. Append any other package managers you care about.
edit: voyager shat the bed with the code block but you get the point