CentOS may have dependency problems during software installation
Package conflicts are relatively common, so make a note
yum is better at resolving dependencies, and yum remove is safer when removing packages (which will let you confirm that dependencies are also removed). Adding a package that is depended on by other packages cannot be removed with yum remove.
The purpose and function of rpm -e and yum remove are the same
rpm -e plus --nodeps can ignore dependencies and remove a package. It may make some programs of the system inoperable (because dependencies are removed, such as rpm -e --nodeps libstdc++-4.8.2-8.el6.x86_64).
When using ignore dependencies, you must remember to reinstall a similar version to make the program re-implement dependencies (yum install libstdc++-4.4.7-16.el6.x86_64 -y)