1.配置YUM源 a.mv /etc/yum.repos.d /etc/yum.repos.d.bak; b.修改/etc/yum.conf文件,添加: [extras] name=Fedora Extras $releasever - $basearch baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/extras/6/i386 enabled=1 [updates] name=Fedora Core $releasever - $basearch - Updates baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/6/i386 enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora [core] name=Fedora Core $releasever - $basearch baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os enable=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY c. yum update:更新所有包; yum upgrade:更新所有包同时删除过时包; yum list yum list installed yum list updates:列出可升级; yum install/remove package-name。