yum的基本用法

2021-09-01 12:50:00 字數 1845 閱讀 9589

1、安裝rpm包:

yum install rpm包
2、刪除rpm包,包括與該包有依賴性的包:

yum remove 包名
3、檢查可更新的rpm包:

yum check-update
4、更新所有的rpm包:

yum update
5、更新指定的rpm包:

yum update 包名
6、大規模的公升級版本:

yum upgrade
7、列出資源庫中所有可以安裝或更新的rpm包的資訊:

yum info
8、列出資源庫中特定的可以安裝或更新以及已經安裝的rpm包的資訊:

yum info 包名
9、列出資源庫中所有可以更新的rpm包的資訊:

yum info updates
10、列出已經安裝的所有的rpm包的資訊:

yum info installed
11、列出已經安裝的但是不包含在資源庫中的rpm包資訊:

yum info 包名
12、列出資源庫中所有可以更新的rpm包:

yum list updates
13、列出已經安裝的所有rpm包:

yum list installed
14、列出已經安裝的但不包含在資源庫中的rpm包:

yum list extras
15、列出資源庫中所有可以安裝或更新的rpm包:

yum list
16、列出資源庫中特定的可以安裝或更新以及已經安裝的rpm包:

yum list 包名
17、搜尋匹配特定字元的rpm包的詳細資訊:

yum search 包名
18、搜尋包含特定檔名的rpm包:

yum provides 包名
19、清除暫存的rpm包檔案:

yum clean packages
20、清除暫存的rpm標頭檔案:

yum clean headers
21、清除暫存中舊的rpm舊檔案:

yum clean oldheaders
22、清除暫存中舊的rpm標頭檔案和包檔案:

yum clean

或yum clean all

yum的基本用法

1 安裝rpm包 yum install rpm包2 刪除rpm包,包括與該包有依賴性的包 yum remove 包名3 檢查可更新的rpm包 yum check update4 更新所有的rpm包 yum update5 更新指定的rpm包 yum update 包名6 大規模的公升級版本 yum...

yum用法詳解

yum用法詳解 1 新增livna源 操作步驟 root localhost home wget 步驟2 安裝livna release 7.rpm root localhost home rpm ivh livna release 7.rpm 2 新增freshrpms源 支援apt和yum 步驟...

yum基礎用法

1 安裝rpm包 yum install rpm包 2 刪除rpm包,包括與該包有依賴性的包 yum remove 包名 3 檢查可更新的rpm包 yum check update 4 更新所有的rpm包 yum update 5 更新指定的rpm包 yum update 包名 6 大規模的公升級版...