Radhat 5 6 7 配置 yum

Radhat7.9 yum本地源配置 如果不注意将yum.repos.d文件夹删除了,重新在/etc下创建一个yum.repos.d文件夹。2. 进入root 并创建/mnt/cdrom 目录。6.配置本地源,创建Media.repo文件。3.挂载镜像文件到 /mnt/cdrom目录。1.将ISO镜像文件挂载 并勾选。5.删除默认的原本地yum源。7.加载本地yum源&测试。4.备份原来的yum源。 阅读详情

redhat 5 6 7 配置yum服务的原理是一样的,本文以redhat5为例配置yum服务。

1、查看当前操作系统的radhat 版本号与32/64位操作系统。

[root@localhost centos5]# more /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
[root@localhost centos5]# uname -a
Linux localhost.localdomain 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

2、删除radhat自带的yum服务

[root@localhost centos5]# rpm -qa|grep yum |xargs rpm -e --nodeps

3、从镜像网站下载相应的yum 安装包并安装(安装包个数因操作系统版本号不同会有存在差异)

[root@localhost centos5]# wget yum-3.2.22-40.el5.centos.noarch.rpm
[root@localhost centos5]# wget yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
[root@localhost centos5]# wget yum-metadata-parser-1.1.2-4.el5.x86_64.rpm                                
[root@localhost centos5]# rpm -ivh yum*.rpm

4、配置yum源(推荐使用的是163的镜像)

[root@localhost centos5]# vi /etc/yum.repos.d/CenOS-Base.repo

添加以下内容:

# CentOS-Base.repo
#
# 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.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/5/os/x86_64/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

#released updates 
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/5/updates/x86_64/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/5/extras/x86_64/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirrors.163.com/centos/5/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirrors.163.com/centos/5/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

5、清除缓存并下载新的镜像缓存

[root@localhost centos5]# yum clean all
[root@localhost centos5]# yum makecache

6、测试(查看当前subversion版本与检查服务器subversion版本)

[root@localhost yum.repos.d]# rpm -qa|grep subversion
subversion-1.6.11-7.el5_6.4
subversion-1.6.11-7.el5_6.4
[root@localhost yum.repos.d]# yum check-update subversion
Loaded plugins: fastestmirror, katello, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Loading mirror speeds from cached hostfile

subversion.i386                      1.6.11-12.el5_10                         base     
subversion.x86_64                    1.6.11-12.el5_10                         base     
Obsoleting Packages
centos-release.x86_64                10:5-11.el5.centos                       base     
redhat-release.x86_64                5Server-5.8.0.3                          installed
firefox.i386                         31.3.0-4.el5.centos                      updates  
    firefox.i386                     3.6.26-1.el5_7                           installed
firefox.x86_64                       31.3.0-4.el5.centos                      updates  
    firefox.x86_64                   3.6.26-1.el5_7                           installed


7、安装yum注意问题

根据Linux 的版本号安装相应的CentOS并引用CentOS版本号对应的CenOS-Base.repo文件,

(1)、如果安装了CentOS 5的yun,却引用CentOS6的源yum makecache时就会报错。

(2)、如果操作系统是Radhat 5,却安装 CentOS6 yum会导致安装时需要手动安装与升级大量的依赖包。


8、附:CentOS中国镜像网址

Asia	China	Zhejiang University	http://mirrors.zju.edu.cn/centos/		
Asia	China	Alibaba Cloud Computing	http://mirrors.aliyun.com/centos/		
Asia	China	Beijing Institute of Technology	http://mirror.bit.edu.cn/centos/		
Asia	China	BitComm Ltd.	http://mirrors.pubyun.com/centos/		
Asia	China	CDS China	http://mirrors.yun-idc.com/centos/	ftp://mirrors.yun-idc.com/centos/	rsync://mirrors.yun-idc.com/centos/
Asia	China	China University of Geosciences	http://mirrors.cug.edu.cn/centos/		
Asia	China	Dalian Neusoft University of Information	http://mirrors.neusoft.edu.cn/centos/	ftp://mirrors.neusoft.edu.cn/centos/	
Asia	China	Huazhong University of Science and Technology	http://mirrors.hust.edu.cn/centos/		rsync://mirrors.hust.edu.cn/centos/
Asia	China	NetEase	http://mirrors.163.com/centos/		
Asia	China	Northeastern University, Shenyang Liaoni	http://mirror.neu.edu.cn/centos/		
Asia	China	Northwest A&F University	http://mirrors.nwsuaf.edu.cn/centos/		
Asia	China	Qiming College of Huazhong University of Science and Technology	http://mirrors.hustunique.com/centos/	rsync://mirrors.hustunique.com/centos/
Asia	China	Shanghai Jiao Tong University	http://ftp.sjtu.edu.cn/centos/	ftp://ftp.sjtu.edu.cn/centos/	
Asia	China	Sohu Inc, Beijing P.R. China	http://mirrors.sohu.com/centos/		
Asia	China	University of Science and Tech of China	http://centos.ustc.edu.cn/centos/		
Asia	China - Hong Kong	Asia Web Services Ltd.	http://mirror.vpshosting.com.hk/pub/linux/centos/ ftp://mirror.vpshosting.com.hk/pub/linux/centos/

Linux系统下yum及其依赖包完整安装指南(基于Python 2.7.5环境) yum(Yellowdog Updater, Modified)是Linux系统中基于RPM包管理的前端工具,广泛应用于CentOS、RHEL、Fedora等发行版中,用于自动化地安装、更新、查询和删除软件包。其核心优势在于能够自动解决软件包之间的依赖关系,极大简化了系统管理员在日常维护中的操作复杂度。# yum常用命令示例yum install httpd -y # 安装Apache服务yum update kernel # 更新内核yum remove gcc # 卸载编译器yum通过读取。 阅读详情

相关推荐

RedHat 5.3下载

NULL 博文链接:https://lcgg110.iteye.com/blog/519534

rhel 5 yum光盘源

该方法使用红帽企业版5.x系列(4.X的直接用好像是不行的):os :LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-...

cizongzhic79075的博客 156

rhel-server-5.5-x86_64

rhel-server-5.5-x86_64 redhat 5.5 64bit download 本人使用的就是这个

Red Hat Enterprise Linux Server release 5.5 (Tikanga) 逻辑卷 在线扩展

<br />和之前版本的区别<br />e2fsck -f /dev/volume-test/vo<br />resize2fs /dev/volume-test/vo

sustwct的专栏 2662

redhat5.2

redhat5.2

RadHat5.1-7.5 32位 64位所有iso镜像

RadHat5.1-7.5 32位 64位所有iso镜像。

oracle0raD,在Radhat 5 上安装Oracle 10g(转)

环境:1.操作系统[root@dbatest1 ~]# cat /etc/redhat-releaseRed Hat Enterprise Linux release 5 (Tikanga)[root@dbatest1 ~]# uname -aLinux dbatest1 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i38...

weixin_39675178的博客 167

redhat6.4,6.5,6.6,6.7,7.1 iso下载地址集合

包含Redhat 6.4 6.5/6.6/6.7/7.1的百度盘分享 ,X86_64_DVD

卸载RPM包时报错specifies multiple packages

卸载RPM包时报错specifies multiple packages   当卸载RPM安装包时,经常会遇到系统提示如下错误: error: xxxxx specifies multiple packages   例如:我打算卸载ImageMagick,执行卸载过程如下:   1、首先查询ImageMagick安装包 # rpm –qa |grep ImageMagick

骆骆的博客 1万+

透传产品上报AEP平台数据流程

1. 什么是数据透传 数据透传:指的是在通讯中不管传输的业务内容如何,只负责将传输的内容由源地址传输到目的地址,而不对业务数据内容做任何改变。 这篇文章描述了如何将一台NB设备通过透传方式将数据传输到AEP平台,再通过数据订阅的方式获取到这些数据。 2. 步骤 2.1 设备在AEP平台创建 AEP:https://dm.ctwing.cn/ 新建产品 添加设备 根据模组的15位IMEI添加设备 开启内网穿透 具体可参照我的这篇博客:内网穿透-如何进行本地数据调试 设置数据推送

qq_42265394的博客 2296

Ubuntu 24.04 LTS与Windows 11远程桌面连接:从xrdp闪退到xfce4桌面环境的实战排障

本文详细解决了在Ubuntu 24.04 LTS上使用xrdp连接Windows 11远程桌面时遇到的登录后闪退问题。通过分析日志,定位到默认GNOME桌面环境与xrdp的兼容性冲突,并提供了将桌面环境更换为轻量且兼容性更佳的XFCE4的完整实战解决方案,包括安装、关键配置修改及服务重启步骤,确保远程连接稳定可靠。

mango的博客 805

为Red Hat Enterprise Linux Server release 5.5搭建本地YUM源

现状:Red Hat Enterprise Linux Server release 5.5上可以使用YUM,但是需要到红帽官方注册,需要花钱。 不花钱的方法:在局域网一台机器上为Red Hat Enterprise Linux Server release 5.5搭建一个YUM源,然后供局域网中的其他机器使用。 yum源搭建 的详细流程:

lovemelovemycode的专栏 2802

DeepSeek+Dify实战:零代码构建智能SQL生成器

本文详细介绍了如何利用DeepSeek和Dify零代码构建智能SQL生成器,帮助非技术人员通过自然语言查询数据库。文章涵盖从数据准备、知识库设计到Agent配置的全流程,并提供了优化技巧和实际应用案例,显著提升团队数据查询效率。

weixin_29311017的博客 418

radhat yum网络源配置

打开网页,ctrl+f 搜索相关yum包:http://mirrors.163.com/centos/7/os/x86_64/Packages/阿里云网络源地址:https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/rpm -qa|grep yum|xargs rpm -e --nodeps 不检查依赖,直接删除rpm包。如有有依赖问题,下载依赖包进行安装。网络源地址:http://centos.ustc.edu.cn/centos/

qq_61748012的博客 523

LLC谐振变换器中的软开关艺术:ZVS与ZCS的协同设计

本文深入解析了LLC谐振变换器如何通过巧妙的电路设计,协同实现零电压开关(ZVS)与零电流开关(ZCS),从而大幅降低开关损耗与电磁干扰,提升电源效率。文章结合设计实战,详细阐述了谐振参数计算、器件选型及调试避坑指南,为高效、高功率密度电源设计提供了核心思路与解决方案。

weixin_29216957的博客 349

2025最新正版Autodesk 3ds Max 2022安装教程:从下载到中文环境配置全流程解析

Autodesk 3ds Max 2022是一款专业的三维建模、动画和渲染软件,广泛应用于影视制作、游戏开发、建筑可视化等领域。

waicsdn_haha的博客 1万+

RadHat搭建内网YUM源服务器

前言:随着内网linux服务器越来越多,在每台服务器上安装软件,都要先把安装盘上传上去,在配置本地yum服务,即麻烦又费时。可以在内网的一台linux服务器上安装yum服务,然后其他服务器直接修改repo文件使用yum服务就可以了。安装步骤如下:

wangjx的专栏 7384

解锁RK3588视觉潜能:RGA硬件加速库实战指南

本文深入探讨了如何利用RK3588芯片内置的RGA硬件加速库,解决视觉应用中图像预处理的性能瓶颈。通过实战指南,详细介绍了RGA库在YUV转RGB、图像缩放等核心操作上的应用,相比CPU软处理可大幅降低延迟与CPU占用,从而充分释放RK3588的NPU算力,构建高效的AI视觉预处理流水线。

zeta9的博客 669

Redhat6.5——解决yum功能不能正常使用

以前或多或少接触过linux服务器,由于是服务器上的,很多东西也没去玩过。要想多研究,还是得自己弄一个linux系统。由于正常工作,还是接触windows更多,双系统显然没有那么方便,所以决定弄个虚拟机。虚拟机资源网上大致看了下,用vm比较多,系统版本选择的是Redhat6.5。具体安装过程就不说了,网上比较多。 分享一下资源(redhat6.5+vmware): 链接:http://pan.b

ck3207的博客 8416

Anomalib实战:5分钟搞定图像异常检测模型训练(附完整代码)

本文提供了一份基于Anomalib框架的图像异常检测快速实战指南。文章详细介绍了从环境搭建、数据准备到模型训练与推理的完整流程,重点推荐了训练速度快、效果稳定的PatchCore模型,并附带了可运行的完整代码,旨在帮助开发者快速上手工业质检等实际应用。

weixin_29039773的博客 420

Cursor生成JAVA相关的关键词提示规则

你是 Java 编程、Spring Boot、Spring Framework、Maven、JUnit 及相关 Java 技术的专家。在项目根目录创建一个.curstorrules文件(注意有个小数点),之后在该文件内填入下面内容。始终遵循 SOLID 原则,保持高内聚低耦合的 Spring Boot 应用设计。Java 和 Spring Boot 使用规范。Spring Boot 具体规范。

kitonGao的博客 2115

Redhat7.5配置本地yum源

centos配置本地yum源

zyf13187056417的博客 2404

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

radhat linux 配置yum,redhat linux 配置yum资源库为centos源

1.先删除系统原yum命令rpm -aq | grep yum |xargs rpm -e --nodeps2.下载centos对应版本的yum命令包http://mirrors.163.com/centos/6/os/x86_64/Packages/需要下载以下几个包:python-iniparse-0.3.1-2.1.el6.noarch.rpmyum-3.2.29-73.el6.centos...

weixin_29532173的博客 174

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

Redhat7安装centos7的yum

1. Redhat安装centos的yum的原因: 1.redhat7需要注册,注册就需要用到外网。很多服务器并不能连到外网 2.redhat7使用yum需要收费 2.安装过程 1. 卸载Redhat7默认安装的yum # 查询结果如下 rpm -qa | grep yum # 卸载 rpm -qa |grep yum |xargs rpm -e --nodeps ...

渣渣渣啊的博客 1156

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

radhat配置mysql环境

root@localhost ~]# yum remove subscription-manager “删除官方的订阅”(1)为了方便操作,先删除/etc/yum.repos.d目录下的 redhat.repo文件(如果没有就不用管)(2)在/etc/yum.repos.d目录下,用vi编辑redhat.repo文件。将下面这段代码直接复制进去,然后保存退出。敲 mysql --version。进入之后把enabled改为0。

yunduan__的博客 144

redhad yum 安装mysql_redhat7通过yum安装mysql5.7.17教程

rhel/centos系列linux操作系统自身没有mysql的源,需要自行下载安装。本文介绍如何安装mysql5.7.x数据库。第一步:下载源[root@client ~]# wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm注意:选择mysql57-community-releasexxx开头的,不要选择m...

weixin_36487018的博客 260
上一篇: RadHat 配置XDMCP
下一篇: struts2 Spring4 hiberante4 shiro2集成实例
javaee_ssh
博客等级 码龄18年 42粉丝 42原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值