Raising TypeError instead of just logging
Added rpm support