當前位置:首頁 » 數據倉庫 » 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

基本大功告成