centos6.5 yum網路源配置
Centos 6.X 安裝阿里或者網易的源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 這個是6.X的阿里源
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 這個是網易的6.x的源
下載成功以後執行yum clean all
然後執行yum makecache命令
當yum makecache完成以後,源就安裝完了
可以yum list 檢視一下yum庫裡的包
yum常用選項
check 檢查 RPM 資料庫問題
check-update 檢查是否有可用的軟體包更新
clean 刪除快取資料
deplist 列出軟體包的依賴關係
distribution-synchronization 已同步軟體包到最新可用版本
downgrade 降級軟體包
erase 從系統中移除一個或多個軟體包
fssnapshot 建立檔案系統快照,或列出/刪除當前快照
groups 顯示或使用、組資訊
help 顯示用法提示
history 顯示或使用事務歷史
info 顯示關於軟體包或組的詳細資訊
install 向系統中安裝一個或多個軟體包
langavailable 檢查可用的語言
langinfo 語言資訊列表
langinstall 為語言安裝適當的語言包
langlist 列出已安裝的語言
langremove 刪除語言的已安裝語言包
list 列出一個或一組軟體包
load-transaction 從檔名中載入一個已存事務
makecache 建立元資料快取
provides 查詢提供指定內容的軟體包
reinstall 覆蓋安裝軟體包
repo-pkgs 將一個源當作一個軟體包組,這樣我們就可以一次性安裝/移除全部軟體包。
repolist 顯示已配置的源
search 在軟體包詳細資訊中搜索指定字串
shell 執行互動式的 yum shell
swap 簡單的交換軟體包的方法,而不是使用shell
update 更新系統中的一個或多個軟體包
update-minimal 像升級一樣工作,但轉到最新的包匹配,修復影響系統的問題。
updateinfo 在儲存庫更新資訊上動作
upgrade 更新軟體包同時考慮軟體包取代關係
version 顯示機器和/或可用的源版本。