CentOS5 YUM源

2023-10-07 13:58
文章标签 yum centos5

本文主要是介绍CentOS5 YUM源,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1、备份并清空 /etc/yum.repos.d/CentOS-Base.repo
echo "" > /etc/yum.repos.d/CentOS-Base.repo

或者(如果第一次使用的话)
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.DEFAULT

2、添加CentOS中文更新镜像配置文件:
vi /etc/yum.repos.d/CentOS-New.repo


粘贴配置文件的内容:

 

 

 

 

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

# CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://centos.ustc.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://centos.ustc.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5


#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://centos.ustc.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://centos.ustc.edu.cn/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

这篇关于CentOS5 YUM源的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/158204

相关文章

OpenStack离线Train版安装系列—0制作yum源

本系列文章包含从OpenStack离线源制作到完成OpenStack安装的全部过程。 在本系列教程中使用的OpenStack的安装版本为第20个版本Train(简称T版本),2020年5月13日,OpenStack社区发布了第21个版本Ussuri(简称U版本)。 OpenStack部署系列文章 OpenStack Victoria版 安装部署系列教程 OpenStack Ussuri版

【linux yum常用命令】linux yum 命令

yum常用命令1.列出所有可更新的软件清单命令:yum check-update2.更新所有软件命令:yum update3.仅安装指定的软件命令:yum install <package_name>4.仅更新指定的软件命令:yum update <package_name>5.列出所有可安裝的软件清单命令:yum list 比如:利用 yum 的功能,找出以 pam 为开头的软件名称有哪些?

CentOS 6.5 yum安装配置Lnmp服务器和redis

安装redis  详见: http://blog.csdn.net/u013372487/article/details/51121172 http://blog.csdn.net/u013372487/article/details/51121650 准备篇: 1、配置防火墙,开启80端口、3306端口 vi /etc/sysconfig/iptables -A INPUT -

Linux_rpm管理,yum

目录 rpm管理  介绍 rpm包的简单查询指令 rpm包名基本格式 案例演示  卸载rpm包 安装rpm包  yum  应用案例  rpm管理  介绍  ​​​​​​​ rpm用于互联网下载包的打包及安装工具,它包含在某些Linux分发版中。  rpm包的简单查询指令   rpm指令用于查询包是否已经被下载。 rpm包名基本格式   格式里看以看

Linux下YUM安装软件包找不到镜像的解决办法

一、什么是repo文件         repo文件是Fedora中yum源(软件仓库)的配置文件,通常一个repo文件定义了一个或者多个软件仓库的细节内容,例如我们将从哪里下载需要安装或者升级的软件包,repo文件中的设置内容将被yum读取和应用!          YUM的工作原理并不复杂,每一个 RPM软件的头(header)里面都会纪录该软件的依赖关系,那么如果可以将该头的内容纪录下来

​yum安装/更新时报错:SyntaxError: invalid syntax​

yum安装时报错:SyntaxError: invalid syntax 在安装完python3环境后,执行yum命令会提示语法报错 因为把python环境连接到了python3上,而yum默认的环境是python2,所以提示语法错误 解决方法: 1:你可以把python2的语法格式修改为python3,这工作量就有点大了。不过要是哪位很无聊的话可以试试,记得把成果分享出来啊O(∩_∩)O

如何使用 yum 在 CentOS 6 上安装 nginx

前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到网站。 状态 状态: 已弃用 本文涵盖的 CentOS 版本已不再受支持。如果您目前正在运行 CentOS 6 服务器,我们强烈建议升级或迁移到受支持的 CentOS 版本。 原因: CentOS 6 已于 2020 年 11 月 30 日到达生命周期终点(EOL),不再接收安全补丁或更新。因此,本

本地配置yum源的方法

 1.进入etc下配置文件 cd /etc/yum.repos.d/ 2.查看 ls 3.修改文件名(可以删掉其中一个) mv rhel-source.repo tao.repo 4.编辑修改后的文件 vi tao.repo 5.按如下修改 ①redhat6.0以上按如下修改: [tao] name=Red Hat Enterprise Linux $releasever - Sourc

yum命令和rpm命令

1、卸载一个软件时,执行如下命令 yum -y remove httpd 2、卸载多个相类似的软件,执行如下命令 yum -y remove httpd* 3、卸载多个非类似软件时,执行如下命令 yum -y remove httpd php php-gd mysql yum -y install 包名(支持*) :自动选择y,全自动yum install 包名(支持*) :

在新安装的Centos中安装python3.7 解决pip和yum问题

首先要先安装依赖包: yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make cd到一个你想放在的地方,哪里都可以。接着找到python3.7的安装包: wget https://www.python.org/ftp/python