uninstall rpm and install new version yum code example Example: remove yum package # Remove yum package yum remove package_name…