如何查看一個
RPM軟件包 是否安裝 ( )A.rp m -Vc postfi xB.rpm -q po stfixC .rpm - -chang elog p ostfix D.rpm -qchan gelog postfi x答案是:B .rpm - q post fix小編還為您整理了以下內容,可能對您也有幫助:
如何安裝和升級一個RPM軟件包
Resolution
注意: 在 Red Hat Enterprise Linux 5 之后,由于 yum 能正確更新本地 yum 數據庫, 所以相較于 yum,我們推薦您使用 rpm。
如果您想安裝某 RPM 包,您的系統里必需有這個要安裝的 RPM 軟件包文件。大多數人會從網站上下載 RPM 包。紅帽客戶門戶網站會提供官方發行的所有 RPM 包。
rpm 主要用到以下兩個參數用來安裝或者升級 RPM 包。
-i 用來安裝一個新的包。為了防止新內核無法啟動,請用這個參數來安裝及升級內核。
-U 用來升級 RPM 包,但是如果這個 RPM 包不在 RPM 數據庫,則它會安裝該包。
在 RPM 的 man 手冊里您可以查到 rpm 的其它參數及用法。請在命令行里輸入 man rpm 。以下是關于 -i 以及 -U 的說明:
Raw
INSTALL AND UPGRADE OPTIONS
The general form of an rpm install command is
rpm {-i|--install} [install-options] PACKAGE_FILE ...
This installs a new package.
The general form of an rpm upgrade command is
rpm {-U|--upgrade} [install-options] PACKAGE_FILE ...
This install the package or upgrades the package currently installed to a newer
version. This is the same as install, except all other version(s) of
the package are removed after the new package is installed.
如何安裝和升級一個RPM軟件包
Resolution
注意: 在 Red Hat Enterprise Linux 5 之后,由于 yum 能正確更新本地 yum 數據庫, 所以相較于 yum,我們推薦您使用 rpm。
如果您想安裝某 RPM 包,您的系統里必需有這個要安裝的 RPM 軟件包文件。大多數人會從網站上下載 RPM 包。紅帽客戶門戶網站會提供官方發行的所有 RPM 包。
rpm 主要用到以下兩個參數用來安裝或者升級 RPM 包。
-i 用來安裝一個新的包。為了防止新內核無法啟動,請用這個參數來安裝及升級內核。
-U 用來升級 RPM 包,但是如果這個 RPM 包不在 RPM 數據庫,則它會安裝該包。
在 RPM 的 man 手冊里您可以查到 rpm 的其它參數及用法。請在命令行里輸入 man rpm 。以下是關于 -i 以及 -U 的說明:
Raw
INSTALL AND UPGRADE OPTIONS
The general form of an rpm install command is
rpm {-i|--install} [install-options] PACKAGE_FILE ...
This installs a new package.
The general form of an rpm upgrade command is
rpm {-U|--upgrade} [install-options] PACKAGE_FILE ...
This install the package or upgrades the package currently installed to a newer
version. This is the same as install, except all other version(s) of
the package are removed after the new package is installed.
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com