安装
[root@yangshiqiang ~]# sudo rpm -ivh xxx.rpm
覆盖安装,并自动卸载老版本
[root@yangshiqiang ~]# rpm -Uvh xxx.rpm --nodeps --force
覆盖安装,忽略package xxx is already installed错误
[root@yangshiqiang ~]# rpm -ivh --replacepkgs xxx.rpm
文件冲突,忽略报错:file filepath from install of xxx1 conflicts with file from package xxx2
[root@yangshiqiang ~]# rpm -ivh --replacefiles xxx.rpm
卸载
[首先通过 rpm -q <关键字> 可以查询到rpm包的名字然后调用 rpm -e <包的名字> 删除特定rpm包如果遇到依赖,无法删除,使用 rpm -e --nodeps <包的名字> 不检查依赖,直接删除rpm包如果有多个同样名字的包,使用 rpm -e --allmatches --nodeps <包的名字> 删除所有相同名字的包,并忽略依赖