YUM源的基本操作

repo國內源

	> –http://mirrors.aliyun.com
	> –centos-->help
	> -before:yum install wget

repo本地目錄源

–mount /dev/cdrom /mnt

–vi /etc/yum.repos.d/local.repo

–[local]

–baseurl=file:///mnt

–gpgcheck=0

–enable=1

yum命令

–yum repolist
–yum clean all
–yum makecache
–yum update

yum查詢

–yum list
–yum search
–yum info

yum安裝&卸載

–yum install 
–remove|erase

yum分組

–yum grouplist
–yum groupinfo
–yum groupinstall
–yum groupremove
–yum groupupdate

中文顯示,查看中文文檔

•yum 的 repo 變成aliyun || 本地DVD

•yum grouplist

•yum groupinstall "Chinese Support"

•echo $LANG

–en_US.UTF-8

–LANG=zh_CN.UTF-8

–

•增加epel的repo:

–http://mirrors.aliyun.com

–epel>>>>>help

–wget centos6.......

–

•yum clean all

•yum makecache

•yum search man-pages

•yum install man man-pages man-pages-zh-CN

•【【【【 man bash 】】】】
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章