https://blog.csdn.net/assassinsshadow/article/details/72868494
rpm -e --nodeps 軟件名
- 1
例如:
使用yum install nginx 安裝了nginx,
這是如果直接使用yum remove nginx 的話,會把依賴的一些包也刪掉,
所以要使用rpm -e --nodeps nginx這個命令,就只刪除nginx這個包,不會刪除依賴包,
本人的nginx版本:
CentOS release 6.9 (Final)