• centos安装apt命令


    CentOS 下安装apt-get

    CentOS 下安装apt-get

    最近在学习Linux系统时,网上好多帖子都是用apt-get里下载rpm包,于是就在Google上找了个CentOS下安装apt-get的方法 

    1、下载地址:http://pkgs.repoforge.org/rpmforge-release/

    2、根据自己的系统下载对应的包(我是CentOS 7,下载: 

    rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
    ) 

    3、双击安装,这一步做的其实就是将mirrors-rpmforge* .repos等文件放到/etc/yum.repos.d/目录下。 

    4、安装apt: 

    1
    $ yum install apt
    5、更新: 
    1
    $ sudo apt-get update

    二、第二种方式

     centos 下安装apt-get 2012-02-20 17:04:12

    分类: LINUX

    apt-rpm的套件可以在这找你OS和Arch的版本

    http://packages.sw.be/apt/

    以CentOS 5,i386的版本为例

    wget http://packages.sw.be/apt/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm

    安装套件

    rpm -Uvh apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm

    然后去改一下 sources.list

    cp /etc/apt/sources.list.d/os.list /etc/apt/sources.list

    vi /etc/apt/sources.list 

     

       

    repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/os/$(ARCH)

    repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/updates/$(ARCH)

    repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/extras/$(ARCH)

    repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/fasttrack/$(ARCH)

    repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/addons/$(ARCH)

    repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/centosplus/$(ARCH)

    repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/os/$(ARCH)

    repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/updates/$(ARCH)

    repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/extras/$(ARCH)

    repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/fasttrack/$(ARCH)

    repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/addons/$(ARCH)

    repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/centosplus/$(ARCH)

    安装一下 GPG keys

    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*   ---安装证书

    apt-get update

    apt-get upgrade

    第一次跑可能需要先这样一下

    apt-get –fix-broken install

    完成!

  • 相关阅读:
    IfcDescriptiveMeasure
    IfcBooleanOperator
    IfcKnotType
    IfcCurveOnSurface
    IfcCurvatureMeasure
    IfcBSplineCurveForm
    IfcDoseEquivalentMeasure
    netty系列之:使用UDP协议
    netty系列之:自定义编码和解码器要注意的问题
    netty系列之:内置的Frame detection
  • 原文地址:https://www.cnblogs.com/RENQIWEI1995/p/7801101.html
Copyright © 2020-2023  润新知