配置YUM源
来源:互联网 发布:换手机 备份数据 编辑:程序博客网 时间:2024/05/16 01:54
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:更新所有包;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
yum upgrade:更新所有包同时删除过时包;
yum list
yum list installed
yum list updates:列出可升级;
yum install/remove package-name。
yum list
yum list installed
yum list updates:列出可升级;
yum install/remove package-name。
- 配置YUM源
- RH131:配置yum源
- 配置yum源
- yum 源的配置
- redhat yum 源配置
- RedHat yum 源配置
- redhat 配置yum源
- yum本地源配置
- RedHat yum 源配置
- yum源配置
- Linux 配置yum源
- centos Yum源 配置
- rhel6 配置yum源
- 国内yum源配置
- yum 源配置
- yum本地源配置
- 配置本地yum源
- RHEL6配置yum源
- 【读书笔记】Effective C++-2 构造/析构/赋值运算(之一)
- 基于css网页模板
- IT专业人士必去得10个社区
- 用Google Map API自动寻找地址
- Java Portlet
- 配置YUM源
- 玩玩Spring之struts+hibernate+spring添删改查示例
- VB.NET构建圆角平滑的矩形控件(示例Panel)
- 怎样设置一个控件为容器
- 如何把一个窗体添加到容器控件中
- cccccc
- 学习Unix,Solaris的好地方
- wholesale craftwork
- wholesale discount car model.christmas gift.