<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成人无码久久精品| 一区二区免费电影| 免费a级黄色毛片| 色老头综合免费视频| 亚洲AV永久无码精品一区二区国产 | 亚洲一区二区三区免费| 四虎国产精品成人免费久久 | 男女交性无遮挡免费视频| 亚洲高清最新av网站| 日本在线观看免费高清| 三上悠亚亚洲一区高清| 国产中文字幕在线免费观看| 亚洲V无码一区二区三区四区观看| 无码囯产精品一区二区免费| 亚洲色欲www综合网| 成年女人视频网站免费m| 亚洲国产无线乱码在线观看 | 亚洲人成免费网站| 麻豆成人精品国产免费| 猫咪免费人成在线网站| 亚洲成AV人片在线观看WWW| 99视频在线看观免费| 亚洲国产精品99久久久久久| 亚洲人成人无码网www国产| 久草免费福利视频| 亚洲成a人片在线看| 亚洲 无码 在线 专区| 久久免费观看国产99精品| 亚洲一区二区影视| 亚洲综合久久夜AV | 最近免费中文字幕高清大全| 极品色天使在线婷婷天堂亚洲 | 精品亚洲成α人无码成α在线观看 | 午夜国产大片免费观看| 国产精品99久久免费观看| 亚洲人成小说网站色| 亚洲啪啪AV无码片| 日韩电影免费在线观看视频| a级毛片毛片免费观看永久|