分类 杂谈 下的文章

  1. 下载Centos最小化安装包ISO
  2. 安装时选择中文键盘
  3. 安装X Window system
    执行yum groupinstall "X Window system",安装X。安装完成后执行sudo systemctl isolate graphical.target检验安装
  4. 安装Xfce桌面
    执行 yum groupinstall xfce安装Xfce4桌面环境。如果需要,可选安装xfce的其他模块。

执行sudo systemctl isolate graphical.target,进入Xfce。

  1. 安装文泉驿中文字体
  2. install wqy*

  1. 卸载掉原先的Yum

    rpm -qa | grep yum | xargs rpm -e --nodeps
    rpm -qa |grep python-urlgrabber|xargs rpm -e --nodeps
  2. 下载新的Yum

    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-73.el6.centos.noarch.rpm
    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm
  3. 安装包

    rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
    rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm
    rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
    rpm -ivh yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm yum-3.2.29-73.el6.centos.noarch.rpm
    注意:yum的包最好一起安装,是有依赖的
  4. 更改源地址

    cd /etc/yum.repos.d/
    mv rhel-source.repo rhel-source.repo_bak
    wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
    mv CentOS6-Base-163.repo CentOS-Base.repo
    sed -i "s;\$releasever;6;g" CentOS-Base.repo
  5. 愉快的Yum update