<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    逝者如斯夫

    靜而思之
    數(shù)據(jù)加載中……

    Creating A Local Yum Repository (CentOS)


    Creating A Local Yum Repository (CentOS)
    摘自: www.howtoforge.com


    Author & Content of this howto, Tim Haselaars (http://www.trinix.be)

    Sometimes it can be handy to set up your own repository to prevent from downloading the remote repository over and over again. This tutorial shows how to create a CentOS mirror for your local network. If you have to install multiple systems in your local network then all needed packages can be downloaded over the fast LAN connection, thus saving your internet bandwidth.

    Create the Directories:

    mkdir -pv /var/www/html/centos/{base,updates}


    The Base Repository

    Copy the RPMs from the CDs/DVD to /var/www/html/centos/base.

    Create the base repository headers:

    createrepo /var/www/html/centos/base


    The Updates Repository

    Select an rsync mirror for updates: check out this list of aviable mirrors: Centos OS Mirror list and these are identified with rsync.

    For example: rsync://ftp.belnet.be/packages/centos/

    The mirrors share a common structure for updates. Simply append /updates//.

    Rsync to create the updates-released repository:

    rsync -avrt rsync://ftp.belnet.be/packages/centos/5.0/updates/i386 \ --exclude=debug/ /var/www/html/centos/updates

    This will create a complete update repository at /var/www/html/centos/updates/i386. The repodata directory will be created with all of the headers.

    Next I would advise to setup a cron job to run the rsync (above). In this manner your repository is kept updated and only new updates and headers will be downloaded to your repository.


    Yum Configuration

    Edit yum.conf:

    vi /etc/yum.repos.d/CentOS-Base.repo

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

    #released updates
    [update]
    name=CentOS-$releasever - Updates
    baseurl=http://192.168.*.*/centos/$releasever/updates/$basearch/
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    That's it.

    Powered by ScribeFire.

    posted on 2009-01-14 15:59 ideame 閱讀(605) 評(píng)論(0)  編輯  收藏


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 国产精品成人免费视频网站京东| 国产免费网站看v片在线| 免费看国产成年无码AV片| 亚洲精品成人久久| 69xx免费观看视频| 亚洲日韩国产一区二区三区在线 | 亚洲男女内射在线播放| 麻豆亚洲AV成人无码久久精品| 国产精品免费综合一区视频| 真正全免费视频a毛片| 亚洲精品无码久久久| 丁香花在线视频观看免费| 亚洲国产一区国产亚洲| 亚州免费一级毛片| 亚洲精品无码mⅴ在线观看| 四虎影在线永久免费四虎地址8848aa| 羞羞网站免费观看| 亚洲成av人影院| 日韩不卡免费视频| 国产亚洲精品2021自在线| 亚洲欧洲国产精品香蕉网| 无码精品人妻一区二区三区免费看| 中文字幕亚洲综合久久2| 成人网站免费观看| 九九视频高清视频免费观看| 亚洲AV永久青草无码精品| 在线永久看片免费的视频| jzzijzzij在线观看亚洲熟妇| 久久精品国产亚洲Aⅴ蜜臀色欲| 久久香蕉国产线看免费| 亚洲乱妇熟女爽到高潮的片| 精品国产人成亚洲区| 18禁无遮挡无码国产免费网站| 色欲色欲天天天www亚洲伊| 中文字幕亚洲无线码| 无码日韩人妻av一区免费| 国产激情久久久久影院老熟女免费| 亚洲第一香蕉视频| 亚洲日韩人妻第一页| 亚洲精品视频免费在线观看| 美女被免费视频网站a|