Implement purging old packages from rpm repository
Minor fixes