美文网首页
CentOS UBuntu 软件源

CentOS UBuntu 软件源

作者: 百炼 | 来源:发表于2016-11-26 20:06 被阅读0次

    本地源(把本地安装的软件包制成源)

    1. Centos6.4建立本地yum源
    2. Ubuntu创建本地apt源
    3. Ubuntu使用apt-get安装本地deb包

    网络安装源

    CentOS 网易镜像站地址,用的时候用wget下载放到/etc/yum.repos.d/即可,注意先备份原始的/etc/yum.repos.d/CentOS-Base.repo文件。

    1. CentOS 6
      http://mirrors.163.com/.help/CentOS6-Base-163.repo

    2. CentOS 7
      http://mirrors.163.com/.help/CentOS7-Base-163.repo

    3. yum更新centos内核后删除旧内核

    4. ubuntu16.04lts (xenial)安装源

    deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ xenial-security main restricted     universe multiverse
    deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
    
    1. ubuntu14.04源(用时只用一个) 搜狐
    deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
    
    1. 网易
    deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
    

    ubuntu10.04源

    注意:ubuntu10.04截止到15.04月就停止更新了,这是http://mirrors.ustc.edu.cn/ 根据ubuntu-old-releases改的,没想到能更新

    deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid main universe restricted multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid main universe restricted multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-security universe main multiverse restricted
    deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-security universe main multiverse restricted
    deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-updates universe main multiverse restricted
    deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-proposed universe main multiverse restricted
    deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-proposed universe main multiverse restricted
    deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-backports universe main multiverse restricted
    deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-backports universe main multiverse restricted
    deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ lucid-updates universe main multiverse restricted
    

    相关文章

      网友评论

          本文标题:CentOS UBuntu 软件源

          本文链接:https://www.haomeiwen.com/subject/ewsgpttx.html