当前位置:首页 » 数据仓库 » yum配置repo后如何更新
扩展阅读
webinf下怎么引入js 2023-08-31 21:54:13
堡垒机怎么打开web 2023-08-31 21:54:11

yum配置repo后如何更新

发布时间: 2022-10-22 02:58:42

⑴ CentOS系统中用yum update 命令开始更新,更新过程中怎么停下来。。求高手解答!

1、CentOS系统的yum repo存储位置在/etc/yum/repos.d下面。有一个CentOS-Base.repo文件。

⑵ centos7 配置yum更新后,开启停在kernel offset:disabled

centos7 配置yum更新后,开启停在kernel offset:disabled,是设置错误造成的,解决方法如下:

1、首先进入etc文件路径,查看有yum.repos.d的文件夹。

⑶ centos7.3用yum如何一次性更新相互有依赖关系的软件包

你到底是用的7.3还是6.7,安装源里的版本最好要跟当前系统版本一致

⑷ 如何更改Linux yum源

更改linux YUM源方法: 第一步:进入yum配置文件目录: cd /etc/yum.repos.d/ 第二步:备份配置文件: mv CentOS-Base.repo CentOS-Base.repo.bak 第三步:中国易的配置(或其他源配置文件): wget 中国mirrors.一陆三中国/.help/CentOS陆-Base-一陆三.repo 下来的文件名为 CentOS陆-Base-一陆三.repo 第四步:重命名(重命名成配置文件中要求的文件名) mv CentOS陆-Base-一陆三.repo CentOS-Base.repo 第五步:更新: yum update 最终完成

⑸ centos7 怎么配置yum 163的源

Centos7配置国内yum源。网易(163)yum源是国内最好的yum源之一 ,无论是速度还是软件版本,都非常的不错,将yum源设置为163yum,可以提升软件包安装和更新的速度,同时避免一些常见软件版本无法找到。V9zz的云主机就将yum源设置为163的yum,具体设置方法如下:
1,进入yum源配置目录 cd /etc/yum.repos.d
2,备份系统自带的yum源 mv CentOS-Base.repo CentOS-Base.repo.bk 下载163网易的yum源: wget http://mirrors.163.com/.help/CentOS-Base-163.repo
3,更新玩yum源后,执行下边命令更新yum配置,使操作立即生效 yum makecache
4,除了网易之外,国内还有其他不错的yum源,比如中科大和搜狐的,大家可以根据自己需求下载 中科大的yum源: wget http://centos.ustc.e.cn/CentOS-Base.repo sohu的yum源 wgethttp://mirrors.sohu.com/help/CentOS-Base-sohu.repo

⑹ linux 下yum软件库配置文件详解!.repo

repo文件是Fedora中yum源(软件仓库)的配置文件,通常一个repo文件定义了一个或者多个软件仓库的细节内容,例如我们将从哪里下载需要安装或者升级的软件包,repo文件中的设置内容将被yum读取和应用。

具体解释如下图:

⑺ RHEL/CENTOS的YUM功能,如果我有多个YUN源,我如何到指定的YUM中,安装/更新RPM包

--disablerepo=[repo] 禁用一个或多个仓库(支持通配符,逗号分隔),在yum后面加上这个参数即可让它不查找指定的仓库,留下你想要的那就就行了

⑻ CentOS怎么修改yum更新源

yum更新源配置文件:/etc/yum.repos.d/CentOS-Base.repo
1. 在修改前先备份该文件
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2. 修改更新源配置文件(CentOS6地址,其他版本类似)
vim打开配置文件:
vim /etc/yum.repos.d/CentOS-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
baseurl=http://mirrors.oschina.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.oschina.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[addons]
name=CentOS-$releasever - Addons
baseurl=http://mirrors.oschina.com/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.oschina.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.oschina.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
最后保存配置文件。
3. 更新yum源配置
yum update

⑼ linux 下yum软件库配置文件详解!.repo

按我的方法配置YUM,绝对成功。配置好后自动从网络下载安装,不会牵涉到包的依赖关系的。

rhel5下的yum安装配置方法
如果用过ubuntu或者debian,一定会知道有apt-get这个命令的,出格的好用。在redhat下默认没有apt,取而代之的是yum这个东东。rhel5(as5)里默认也装有yum,但是那个yum是要有授权才能使用,上哪去找这个授权尚未知晓,所以这里是用rhel的孪生兄弟centos的yum来替换掉原生的yum,虽然看起来不那么正规,但实际上是完全没有问题的,假如真有问题,可以向信息产业部举报。

先删掉自带的yum:

rpm -aq|grep yum|xargs rpm -e --nodeps

下载三个文件并安装:

wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -ivh python-iniparse-0.2.3-4.el5.noarch.rpm yum-metadata-parser-1.1.2-3.el5.i386.rpm yum-3.2.22-26.el5.centos.noarch.rpm

下载配置:

wget http://sudone.com/download/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo
更新:

yum update

可能下载会比较慢,有一个办法可以解决,那就是等...或者可以去寻找快一点的源,不过那消耗的时间会更多。。执行到后面的时候会问yes/no,那是问你要不要更新整个系统,我至今没有选择过yes。

装一个ImageMagick测测看看?:

yum install ImageMagick

试一下搜索:

yum search kernel

基本大功告成