yum源的相關配置

2021-09-11 18:46:47 字數 1415 閱讀 2872

進入相應的路徑

vi /etc/yum.repos.d/rhel-source.repo

[base]

name=mybase

baseurl=file:///iso/ ##該路徑下,必須能找打 repodata 目錄。

enabled=1

gpgcheck=0

yum repolist

yum list

---------------------------

**********掛載映象*************************

vi /etc/fstab

/dev/cdrom /iso iso9660 defaults 0 0

****************************************

init 6 重新啟動

yum clean all

yum makecache 加快yum安裝

yum updata 更新yum源

yum install -y vim ntsysv pstree

**********====查詢yum源包***************====

root@localhost ~]# yum list | grep "vim"

repository base is listed more than once in the configuration

vim-common.x86_64 2:7.4.160-2.el7 @base

vim-enhanced.x86_64 2:7.4.160-2.el7 @base

vim-filesystem.x86_64 2:7.4.160-2.el7 @base

vim-minimal.x86_64 2:7.4.160-2.el7 @anaconda/7.4

vim-x11.x86_64 2:7.4.160-2.el7 base

******************************===

如果缺少ifconfig命令時需安裝net-tools工具即可

yum -y install net-tools

yum源的配置

vim etc yum.conf gpgcheck 0 在安裝yum的時候都不需要金鑰驗證 vim etc yum.repos.d yum.repo 放置yum源的目錄,必須以 repo結尾 yum源格式 base name base baseurl file tmp yum 如果是本地yum源需要...

yum源的配置

下面我們介紹redhat7.0的本地yum源的安裝步驟 1,在安裝之前我們需要與系統版本匹配的iso映象 版本號和系統位數都要相同 redhat7.0版本,64位所對應的映象是rhel server 7.0 x86 64 2,我們要將映象永久掛載到系統中,vim etc fstab檔案,寫下以下配置...

yum源的配置

yum需要乙個yum庫,也就是yum源。預設情況下,centos就有乙個yum源。在 etc yum.repos.d 目錄下有一些預設的配置檔案 可以將這些檔案移到 opt下,或者直接在yum.repos.d 下重新命名 開啟centos base.repo檔案,可以看到url路徑是centos的官...