Your distribution's package manager is supposed to do this for you. At least, all the rest do; Slack can't seem to figure out how to basically package software. :(

See...