如何在redhat上安装 apt-get软件包
答案:2 悬赏:0 手机版
解决时间 2021-02-05 15:21
- 提问者网友:wodetian
- 2021-02-04 20:39
如何在redhat上安装 apt-get软件包
最佳答案
- 五星知识达人网友:归鹤鸣
- 2021-02-04 21:49
redhat安装apt-get
安装APT工具:
# wget http://redhat.uni-klu.ac.at/el3/apt.i386.rpm
# rpm -Uvh apt.i386.rpm
其它的主要就 是设置sources.list的问题了。进入/etc/apt/sources.list.d/目录下设置一些源就OK了。
网上找的一些源如下:
#dag.list
rpm http://afs.caspur.it/ afs/italia/project/linux/cern/slc302/i386/apt os updates extras
rpm http://redhat.uni-klu.ac.at redhat/dag/el3/i386 dag
rpm-src http://redhat.uni-klu.ac.at redhat/dag/el3/i386 dag
rpm http://apt.sw.be redhat/el3/en/i386 dag
rpm-src http://apt.sw.be redhat/el3/en/i386 dag
如果是KDE的一些软件,下面的源比较有用:
#kde.list
rpm http://apt.kde-redhat.org apt/fedora/3.0 stable
rpm http://apt.kde-redhat.org apt/fedora/all stable
rpm http://apt.kde-redhat.org apt/kde-redhat/3.0 stable unstable
rpm http://apt.kde-redhat.org apt/kde-redhat/all stable unstable
如果需要更多Java相关软件,则:
#vi /etc/apt/sources.list.d/jpackage.list
rpm http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/i386 free devel
rpm-src http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/i386 free devel
rpm http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/generic free devel
rpm-src http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/generic free devel
比较好用的是CERN的linux站点,如下:
rpm http://linuxsoft.cern.ch cern/slc30X/i386/apt os updates extras
rpm-src http://linuxsoft.cern.ch cern/slc30X/i386/apt os updates extras
rpm http://ftp.kddilabs.jp Linux/packages/scientificlinux/30x/i386/apt-rpm os updates
rpm-src http://ftp.kddilabs.jp Linux/packages/scientificlinux/30x/i386/apt-rpm os updates
rpm http://ftp.ne.jp Linux/distributions/scientificlinux/30x/i386/apt-rpm os updates
rpm-src http://ftp.ne.jp Linux/distributions/scientificlinux/30x/i386/apt-rpm os updates
rpm http://mirror.switch.ch ftp/mirror/scientificlinux/30x/i386/apt-rpm os updates
rpm-src http://mirror.switch.ch ftp/mirror/scientificlinux/30x/i386/apt-rpm os updates
rpm ftp://linux.fnal.gov /linux/scientific/30x/i386/apt-rpm os updates
rpm-src ftp://linux.fnal.gov /linux/scientific/30x/i386/apt-rpm os updates
保存退出后
#apt-get update
#apt-get upgrade
#apt-get check //检查依赖性
#apt-get -f install // 解决依赖性问题
然后apt-get install XXX 就可以安装需要的软件包啦。
如果要安装某工具,比如说iftop,可以这样:
#apt-cache search iftop
#apt-get install iftop
apt自动解决依赖性问题,比较方便。
安装APT工具:
# wget http://redhat.uni-klu.ac.at/el3/apt.i386.rpm
# rpm -Uvh apt.i386.rpm
其它的主要就 是设置sources.list的问题了。进入/etc/apt/sources.list.d/目录下设置一些源就OK了。
网上找的一些源如下:
#dag.list
rpm http://afs.caspur.it/ afs/italia/project/linux/cern/slc302/i386/apt os updates extras
rpm http://redhat.uni-klu.ac.at redhat/dag/el3/i386 dag
rpm-src http://redhat.uni-klu.ac.at redhat/dag/el3/i386 dag
rpm http://apt.sw.be redhat/el3/en/i386 dag
rpm-src http://apt.sw.be redhat/el3/en/i386 dag
如果是KDE的一些软件,下面的源比较有用:
#kde.list
rpm http://apt.kde-redhat.org apt/fedora/3.0 stable
rpm http://apt.kde-redhat.org apt/fedora/all stable
rpm http://apt.kde-redhat.org apt/kde-redhat/3.0 stable unstable
rpm http://apt.kde-redhat.org apt/kde-redhat/all stable unstable
如果需要更多Java相关软件,则:
#vi /etc/apt/sources.list.d/jpackage.list
rpm http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/i386 free devel
rpm-src http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/i386 free devel
rpm http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/generic free devel
rpm-src http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/generic free devel
比较好用的是CERN的linux站点,如下:
rpm http://linuxsoft.cern.ch cern/slc30X/i386/apt os updates extras
rpm-src http://linuxsoft.cern.ch cern/slc30X/i386/apt os updates extras
rpm http://ftp.kddilabs.jp Linux/packages/scientificlinux/30x/i386/apt-rpm os updates
rpm-src http://ftp.kddilabs.jp Linux/packages/scientificlinux/30x/i386/apt-rpm os updates
rpm http://ftp.ne.jp Linux/distributions/scientificlinux/30x/i386/apt-rpm os updates
rpm-src http://ftp.ne.jp Linux/distributions/scientificlinux/30x/i386/apt-rpm os updates
rpm http://mirror.switch.ch ftp/mirror/scientificlinux/30x/i386/apt-rpm os updates
rpm-src http://mirror.switch.ch ftp/mirror/scientificlinux/30x/i386/apt-rpm os updates
rpm ftp://linux.fnal.gov /linux/scientific/30x/i386/apt-rpm os updates
rpm-src ftp://linux.fnal.gov /linux/scientific/30x/i386/apt-rpm os updates
保存退出后
#apt-get update
#apt-get upgrade
#apt-get check //检查依赖性
#apt-get -f install // 解决依赖性问题
然后apt-get install XXX 就可以安装需要的软件包啦。
如果要安装某工具,比如说iftop,可以这样:
#apt-cache search iftop
#apt-get install iftop
apt自动解决依赖性问题,比较方便。
全部回答
- 1楼网友:长青诗
- 2021-02-04 22:42
redhat上是用rpm包安装的,你的apt是用在debian系统上的
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯