rpm包的更新与安装的参数基本上差不多
rpm -U (or --upgrade)options file1.rpm … fileN.rpm
当运行此命令的时候,rpm会做如下事情
(1)安装新的包
(2)删除此包的旧版本(如果旧版本存在)
--oldpackage:执行一个升级对旧版本
--test:测试升级
--excludedocs
--includedocs
--replacepkgs:完全取代,用新的包
--replacefiles
--force
--ignoreos
--nodeps
![Locations of visitors to this page Locations of visitors to this page](https://i-blog.csdnimg.cn/blog_migrate/4a93fa054f0de02d1be30a17dc2eb1d2.png)
![统计](http://img.tongji.linezing.com/2142105/tongji.gif)