next up previous contents
Next: RPM 套件安裝 Up: RPM 套件下載安裝 Previous: RPM 套件   Contents

rpm 指令

  1. 基本功能:套件安裝、升級、更新、移除、查詢及數位簽章驗證及檢查。
    INSTALLING, UPGRADING, AND REMOVING PACKAGES:
       rpm {-i|--install} [install-options] PACKAGE_FILE ...
       rpm {-U|--upgrade} [install-options] PACKAGE_FILE ...
       rpm {-F|--freshen} [install-options] PACKAGE_FILE ...
       rpm {-e|--erase} [--allmatches] [--nodeps] [--noscripts]
           [--notriggers] [--repackage] [--test] PACKAGE_NAME ...
    QUERYING AND VERIFYING PACKAGES:
       rpm {-q|--query} [select-options] [query-options]
       rpm {-V|--verify} [select-options] [verify-options]
       rpm --import PUBKEY ...
       rpm {-K|--checksig} [--nosignature] [--nodigest]
           PACKAGE_FILE ...
    
  2. 一般選項:適用於所有模式
    -?, --help :列出輔助訊息
    --version  :列出 rpm 版本
    --quiet    :僅列出錯誤訊息
    -v         :察看更細部的安裝資訊
    -vv        :列出大量除錯訊息
    --pipe CMD :將 rpm 的輸出以管線處理送到命令 CMD
    


De-Yu Wang 2018-11-30