2012 年五月
« 四    
 12345
6789101112
13141516171819
20212223242526
2728293031  
  • Posts Tagged ‘yum’

    修改RHEL 6的YUM源

     

     

    卸载掉RHEL6自带的YUM包。

        使用下列命令检查YUM的依赖关系。

    rpm -qR yum

    得到的依赖关系有:

    [root@bogon doc]# rpm -qR yum-3.2.27-14.el6.noarch
    /usr/bin/python
    config(yum) = 3.2.27-14.el6
    pygpgme
    python >= 2.4
    python(abi) = 2.6
    python-iniparse
    python-sqlite
    python-urlgrabber >= 3.9.0-8
    rpm >= 0:4.4.2
    rpm-python
    rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(FileDigests) <= 4.6.0-1
    rpmlib(PartialHardlinkSets) <= 4.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    yum-metadata-parser >= 1.1.0
    rpmlib(PayloadIsXz) <= 5.2-1
    [root@bogon doc]# rpm -qR yum
    /usr/bin/python
    config(yum) = 3.2.27-14.el6
    pygpgme
    python >= 2.4
    python(abi) = 2.6
    python-iniparse
    python-sqlite
    python-urlgrabber >= 3.9.0-8
    rpm >= 0:4.4.2
    rpm-python
    rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(FileDigests) <= 4.6.0-1
    rpmlib(PartialHardlinkSets) <= 4.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    yum-metadata-parser >= 1.1.0
    rpmlib(PayloadIsXz) <= 5.2-1

     

     

    使用YUM来卸载掉自己。

    Read the rest of this entry »

    CentOS 使用YUM从CDROM中更新软件

    #cd /media

    #mkdir cdrom

    #mount /dev/cdrom /media/cdrom

    #yum –disablerepo=\* –enablerepo=c5-media install gcc

    最后一句是使用yum安装gcc

    当然,操作前记得把光盘放进光驱里

    Read the rest of this entry »

    Centos yum Source (163.com)

    [main]
    cachedir=/var/cache/yum
    keepcache=1
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1
    metadata_expire=1800
    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d
    [base]
    name=centos-5 – Base
    baseurl=http://mirrors.163.com/centos/5/os/i386/
    # the other site: http://centos.candishosting.com.cn/centos/5/os/i386/
    # you can find more site in: http://www.centos.org/modules/tinycontent/index.php?id=13
    enabled=1
    gpgcheck=1
    gpgkey=http://mirrors.163.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
    #released updates
    [update]
    name=CentOS-5 – Updates
    baseurl=http://mirror.centos.org/centos/5/updates/i386/
    gpgcheck=1
    gpgkey=http://mirrors.163.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-5 – Addons
    baseurl=http://mirror.centos.org/centos/5/addons/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.163.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
    #additional packages that may be useful
    [extras]
    name=CentOS-5 – Extras
    baseurl=http://mirror.centos.org/centos/5/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-5 – Plus
    baseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirrors.163.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
    #contrib – packages by Centos Users
    [contrib]
    name=CentOS-5 – Contrib
    baseurl=http://mirror.centos.org/centos/5/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirrors.163.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
    #packages in testing
    [testing]
    name=CentOS-5 – Testing
    baseurl=http://mirror.centos.org/centos/5/testing/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirrors.163.com/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

    OpenVPN and CentOS 5 Installation and Configuration Guide

    Many ppl found that installing VPN on linux is not that easy, the abvailable installation guides on VPN is often limited. I have tried a lot of installation guides and finally get it connected successfully.

    Here are the steps to guide you installed a secure connection between your? CentOS5 and Windows with OpenVPN open source application.

     

     

    Read the rest of this entry »