page counter next up previous contents
Next: RPM 查詢 Up: RPM 套件下載安裝 Previous: RPM 套件升級與更新   Contents

RPM 套件移除

  1. 移除選項:
    rpm {-e|--erase} [--allmatches] [--nodeps] [--test] PACKAGE_NAME ...
    
    --nodeps:不要去檢查 rpm 套件的相依性。
    --test:只是測試,不是真的移除套件。常與一般選項 -vv 一起使用來除錯
    
  2. 測試是否可移除 mplayer:
    [root@dywHome2 rpm]# rpm -e mplayer --test
    error: Failed dependencies:
            mplayer is needed by (installed) kplayer-0.5.3-5mdv2007.0.i586
    
  3. 測試不要檢查 rpm 套件的相依性下,是否可移除 mplayer:
    [root@dywHome2 rpm]# rpm -e mplayer --test --nodeps
    
  4. 移除套件 baghira:
    [root@dywHome2 rpm]# rpm -e baghira
    



2015-04-13