Linux全般

手順 [#yd60e766]

 # cd /etc/
 # cp -p yum.repos.d yum.repos.d.`date +%Y%m%d`
 # cd yum.repos.d
 # vi /etc/yum.repos.d/CentOS-Base.repo
 [base]
 baseurl=http://vault.centos.org/6.4/os/x86_64/
 [updates]
 baseurl=http://vault.centos.org/6.4/updates/x86_64/
 [extras]
 baseurl=http://vault.centos.org/6.4/extras/x86_64/
 
 # yum clean all
 # yum distribution-synchronization
 依存関係で実行できない場合は
 rpm -e --nodeps パッケージ名
 # yum distribution-synchronization
 # uname -a
 Linux www.h-river.com 2.6.32-358.el6.x86_6
 # cat /etc/redhat-release
 CentOS release 6.4 (Final)