Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

yum.conf 設定檔詳細範本:快取目錄、日誌、鎖定最新版、多倉庫 baseurl 配置

編輯:關於 Linux

主設定區塊

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=1

倉庫定義範例

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=https://download.atrpms.net/mirrors/fedoracore/$releasever/$basearch/os
        https://rpmfind.net/linux/fedora/core/$releasever/$basearch/os
        https://mirror.clarkson.edu/pub/dist/fedora/core/$releasever/$basearch/os

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=https://download.atrpms.net/mirrors/fedoracore/updates/$releasever/$basearch
        https://redhat.linux.ee/pub/fedora/linux/core/updates/$releasever/$basearch
        https://fr2.rpmfind.net/linux/fedora/core/updates/$releasever/$basearch

[Fedora.us]
name=Fedora.us - $basearch - Extras
baseurl=https://fedora.linux.duke.edu/fedora/$releasever/$basearch/RPMS.stable

[Dag Wieers]
name=Dag RPM Repository for Fedora Core
baseurl=https://apt.sw.be/fedora/$releasever/en/$basearch/dag

[Livna]
name=Livna RPM, Fedora Core $releasever - $basearch
baseurl=https://rpm.livna.org/fedora/$releasever/$basearch/RPMS.stable

[freshrpms]
name=FreshRPMs
baseurl=https://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
        https://ftp.us2.freshrpms.net/linux/fedora/$releasever/$basearch/freshrpms/

結語

完整的 yum.conf 範本涵蓋主參數與多倉庫 baseurl,可直接套用於 Fedora/CentOS 系統,滿足多源安裝需求。

Copyright © Windows教程網 All Rights Reserved