日历

2014年五月
« 1月   6月 »
 1234
567891011
12131415161718
19202122232425
262728293031  

最近评论

    linux企业应用

    RHEL6配置本地yum源

    1准备
    /etc/sysconfig/network-scripts/ifcfg-eth0的ONBOOT=no改为yes
    将光盘的内容复制到磁盘上
    [root@localhost network-scripts]# mount /dev/cdrom /mnt
    mount: block device /dev/sr0 is write-protected, mounting read-only
    [root@localhost network-scripts]# mkdir /home/yumsrc
    [root@localhost network-scripts]# cp -a /mnt/* /home/yumsrc/
    [root@localhost network-scripts]# cd /home/yumsrc/Packages/
    安装rpm包
    [root@localhost Packages]# rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm
    warning: createrepo-0.9.9-17.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
    error: Failed dependencies:
    python-deltarpm is needed by createrepo-0.9.9-17.el6.noarch

    这里说安装createrepo需要依赖python-deltarpm
    [root@localhost Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
    warning: python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
    error: […]