手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>网站运营>建站经验>列表

apt with rpm support

来源:互联网 作者:west263.com 时间:2008-04-16
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!

1:libxml2 ########################################### [ 14%]
2:rsync ########################################### [ 28%]
3penldap ########################################### [ 42%]
4penldap-clients ########################################### [ 57%]
5penldap-devel ########################################### [ 71%]
6:at ########################################### [ 85%]
7:libxml2-devel ########################################### [100%]
[root@linux root]#


二、安装apt with rpm及其图像界面前端Synaptic

下面简单介绍一下如何下载和安装apt with rpm
apt with rpm能够直接到 http://freshrpms.net 下载安装,现在该站点提供了redhat 6.2, 7.x和8.0的软件升级服务,下面是几个常用redhat版本的apt下载地址:

redhat 6.2
http://ftp.freshrpms.net/pub/freshr...0.62.1.i386.rpm

redhat 7.2
http://ftp.freshrpms.net/pub/freshr...55-fr7.i386.rpm

redhat 7.3
http://ftp.freshrpms.net/pub/freshr... /> redhat 8.0

http://ftp.freshrpms.net/pub/freshr...c9-fr1.i386.rpm

下载后使用rpm命令安装:

[root@linux root]# rpm -ihv apt-0.5.4cnc9-fr1.i386.rpm

freshrpms.net同时提供了一个图像界面的apt-rpm接口Synaptic,使用图像界面的apt更加方便,安装了apt后,能够直接利用apt安装Synaptic:

[root@linux root]# apt-get update
[root@linux root]# apt-get install synaptic

在几行提示之后Synaptic就安装好了,进入Xwindow,Synaptic会出现在“系统配置”菜单里面。[Fixme: redhat 7.x版本Synaptic出现在哪里?]

三、使用apt

在redhat上面使用apt和在debian下面使用几乎完全相同,配置文档在/etc/apt/,按照前面介绍安装好apt之后就能够使用并能够更新redhat提供的RPM更新连同freshrpms.net提供的更新了。主要运行命令如下:

(1)更新软件列表,获取远程rpm服务器上的软件列表和相互依赖关系列表,任何可用软件的下载地址都在/etc/apt/sources.list里面定义,下面的多数下载操作地址也是在这里定义的。

[root@linux root]# apt-get update

(2)检查本地软件依赖关系合法性,由于rpm系统的问题,很多系统会存在一些依赖问题,用下面命令检查依赖关系,同时apt-get会提供一些修复方案,只有本机没有依赖关系问题了才能良好地使用apt-rpm。一个新安装的干净系统不会有依赖关系问题。

[root@linux root]# apt-get check

(3)安装或升级一个新软件

[root@linux root]# apt-get install package-name

package-name是rpm包的名字的前面部分,不包含版本号,假如选择不同的处理器类型,能够在后面添加@i686等标识。

(4)升级任何系统软件

[root@linux root]# apt-get upgrade

(5)全面升级,比upgrade更加智能化的升级,同时解决升级时的一些依赖关系

[root@linux root]# apt-get dist-upgrade

(6)卸载软件,同时卸载依赖软件

[root@linux root]# apt-get remove package-name

(7)清除本地下载的rpm包,rpm包下载后保存在/var/cache/apt/archieves下面,本命令清除已下载安装过的rpm文档

[root@linux root]# apt-get clean

以上任何命令都能够通过图像界面的前端软件Synaptic完成,图像化的软件使用起来更加直观,理解了前面几个主要命令,就能够毫无困难地使用Synaptic了,所以本文不再赘述Synaptic的使用方法了。

四 定制apt-rpm

(1)添加软件资源列表
在apt-rpm系统里面添加软件资源很容易,只需要按照提供apt服务的服务器的说明在/etc/apt/sources.list里面加入对网站的描述即可。

这一行参数的格式为:

rpm uri distribution [component1] [componenent2] [...]

其中,uri为软件资源的地址,能够是http,ftp,file等URL地址,distribution是redhat发行版本,如 7.2,7.3,8.0等等,后面的component能够忽略。有时候可能只对某软件资源的一或几部分部分感兴趣,那么能够在这里明确指出。

例如添加httdu/ 提供的redhat KDE 3.1的测试软件包,只需要在sources.list里面添加一行:

代码:

rpm ftp://apt.unl.edu/apt/ 8.0 kde3-test



就将该网站的kde3部分加入了列表。

下面是一些现在能够用于redhat 的apt-rpm软件资源列表,把他们加入您的 /etc/apt/sources.list 文档就能够通过apt-rpm使用他们提供的redhat软件更新和维护了,参看网站说明。(前面是网站名,后面是适用redhat版本和简介)


http://apt.freshrpms.net/ - Red Hat Linux 6.2, 7.x and 8.0 repositories (with all freshrpms included of course!)
http://www.linux.cz/apt-rpm/ - Red Hat Linux 7.x repositories (with all freshrpms included too!)
http://apt-rpm.tuxfamily.org/ - Red Hat Linux 6.2, 7.x and 8.0 repositories
http://apt.nlc.no/apt/ - Red Hat Linux 6.2, 7.x and Rawhide repositories
http://ftp.uninett.no/pub/linux/apt/ - Red Hat Linux 6.2, 7.x, 8.0 and Rawhide repositories
http://redhat.usu.edu/ - Red Hat Linux 7.2, 7.3 and 8.0 repositories
ftp://mirror.pa.msu.edu/apt/ - Red Hat Linux 7.2, 7.3 and 8.0 repositories
http://apt-rpm.codefactory.se/ - Red Hat Linux 7.2, 7.3 and 8.0 and gnomehide repositories
http://apt.42h.de/ - Red Hat Linux 7.2, 7.3 and 8.0 repositories
http://apt.toggletext.com.au/ - A few Red Hat Linux 7.2 custom packages
http://people.ecsc.co.uk/~matt/repository.html - Lots of custom Red Hat Linux 8.0 GNOME 2 and related packages
http://ftp-stud.fht-esslingen.de/apt/ - Red Hat Linux 7.x, 8.x and rawhide

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!