yum replace packages centos 7 code example Example: how to remove installation from cent os yum autoremove [package_name]