REDHAT解决apt-get问题
用ubuntu的朋友们都知道,在ubuntu中有一个非常实用的软件管理工具----apt,但是在redhat却没有该工具,这让ubuntu的一些用户感到着实不爽。好,这样我们开始移植行动,将ubuntu上先进的东西移植到redhat上 1.在该网站上我们可以下载linux个版本需要的apt
·
redhat安装apt-get和设置
2012-11-24 23:48:00
http://pkgs.repoforge.org/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自动解决依赖性问题,方便得很。
安装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自动解决依赖性问题,方便得很。
更多推荐
已为社区贡献2条内容
所有评论(0)