improved check for missing packages and extracted it to new function
improved naming of centos functions to install repositories