Redhat 5.2 Yum 配置
2012-05-09 10:09
363 查看
转:http://hi.baidu.com/fisherman86/blog/item/d95e06d0550c5e0b3af3cfb1.html
Redhat 5.2 Yum 配置
2010-03-07 5:48
Redhat 5.2 Yum 配置
2010-03-07 5:48
最近作FPGA的DSP开发,经常在一些论坛上看到说在Linux下跑Matlab的速度非常的快,于是决定装个Linux来试试。由于FPGA的开发工具对系统的要求是要Redhat Enterprise 4/5,所以选择Redhat5。 由于对Linux操作系统没有太多基础,只是读书的时候接触过一下。所以对其配置有很多搞不懂的,幸好有强大的网络可以支持。 目前网上很多介绍的方法用的都是配置rhel 5 使用CentOS的yum站点升级 具体方法如下: 首先,rhel5系统安装的时候其实已经有yum了,只是因为如果用官方的网站更新的话除非你是用钱买的rhel5.否则它会提示注册之类的。所以只要把 yum的更新地址改成开源的就行了。而限定yum更新地址的文件在/etc/yum.repos.d/里。 1、先把它们改成备份文件,即在后面加.bak。 # mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.bak # mv /etc/yum.repos.d/rpmforge.repo.rpmnew /etc/yum.repos.d/rpmforge.repo.rpmnew.bak (这个文件Client版本没有,可以省略这步。) # mv /etc/yum.conf /etc/yum.conf.bak 2、建立新的配置文件: # cd /etc/yum.repos.d # touch rhel-debuginfo.repo # touch mirrors-rpmforge # touch rpmforge.repo # cd .. # touch yum.conf 3、编辑新建的/etc/yum.repos.d/rhel-debuginfo.repo文件,将其内容修改为: [base] name=CentOS-5 - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch& repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #released updates [update] name=CentOS-5 - Updates #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #packages used/produced in the build but not released [addons] name=CentOS-5 - Addons #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #additional packages that may be useful [extras] name=CentOS-5 - Extras #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-5 - Plus #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 #contrib - packages by Centos Users [contrib] name=CentOS-5 - Contrib #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5 # vi dag.repo [dag] name=Dag RPM Repository for RHEL5 baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/ enabled=1 gpgcheck=1 gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt 4、编辑新建的/etc/yum.repos.d/mirrors-rpmforge.repo文件,将其内容修改为: http://apt.sw.be/redhat/el5/en/$ARCH/dag http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag #http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag 5、编辑新建的/etc/rpmforge.repo文件,将其内容修改为: [root@killgoogle ~]# vi rpmforge.repo # Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag # URL: http://rpmforge.net/ [rpmforge] name = Red Hat Enterprise $releasever - RPMforge.net - dag #baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1 6、编辑新建的/etc/yum.conf文件,将其内容修改为: [main] cachedir=/var/cache/yum keepcache=1 debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 metadata_expire=1800 # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d [base] name=centos-5 - Base baseurl=http://centos.ustc.edu.cn/centos/5/os/x86_64/ # the other site: http://centos.candishosting.com.cn/centos/5/os/x86_64/ # you can find more site in: http://www.centos.org/modules/tinycontent/index.php?id=13 enabled=1 gpgcheck=1 gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5 #released updates [update] name=CentOS-5 - Updates baseurl=http://mirror.centos.org/centos/5/updates/x86_64/ gpgcheck=1 gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5 #packages used/produced in the build but not released [addons] name=CentOS-5 - Addons baseurl=http://mirror.centos.org/centos/5/addons/$basearch/ gpgcheck=1 gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-5 - Extras baseurl=http://mirror.centos.org/centos/5/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-5 - Plus baseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5 #contrib - packages by Centos Users [contrib] name=CentOS-5 - Contrib baseurl=http://mirror.centos.org/centos/5/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5 #packages in testing [testing] name=CentOS-5 - Testing baseurl=http://mirror.centos.org/centos/5/testing/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5 ######################### ##### end ################################## #注意:这里我装的是64位的系统,如果装的是32位的系统,应将上面的所有网址的x84_64改成i386. 到此就基本配置完成了,这个是中科大的源,号称每隔小时跟新一次,速度确实蛮快! 但是这样有些软件还是会找不到,为了增加资源库,可以添加livna的资源库。 具体方法是;(来自:http://rpm.livna.org/) How to use rpm.livna.orgGraphical setup after installing FedoraInstall the livna-release package by clicking on this link and hitting Enter a few times.(¹)Command line setup using rpm after installing FedoraInstall the livna-release package by running this command(²):su -c "rpm -ivh http://rpm.livna.org/livna-release.rpm"[/code] |
相关文章推荐
- redhat 6 配置 yum 源
- redhat6 yum安装与配置
- redhat6.4配置yum
- redhat Server release 5.2 安装配置简明教程
- Redhat enterprise linux 6 beta 中的iso本地源yum服务的配置
- redhat6.4配置yum
- Redhat 配置网易yum
- redhat6.4 配置centos6 yum替换
- redhat 6 配置 yum 源的两种方法
- 卸载redhat6.5的yum,安装centos6的yum,配置第三房yum源
- 【推荐】在RedHat Server 5.4上安装YUM【利用网易免费yum源,配置和更新yum】
- RedHat系统yum配置
- RedHat Linux Enterprise 5 yum 配置
- Redhat6.5下配置本地yum
- Redhat6.4环境下yum的安装与配置
- Redhat 6.2 YUM的本地配置
- redhat 6.4 yum 本地配置简记
- Redhat6.4下配置本地yum
- linux redhat yum工具安装配置
- Redhat 5配置YUM服务器