Add the ability to install a local rpm or deb package.
Fixes #5149
Fix exception list in _get_local_dir.  Added docstring for _get_local_dir.
Changed comparison in new Centos code.