发新话题
打印

为redhat增加apt包管理功能

如何使用本地rpm包升级系统?

麻烦版主赐教      
我学故我灌,我灌我提高 =KING= ★★★★ 风清云淡,我心飞翔 ! ☆ CT ☆ 游戏生活,游戏linux!

TOP

试试在/etc/apt/sources.list里面加上一行:

rpm file:/path/to/rpms/ 8.0      

TOP

怎么给apt/synaptic添加代理服务器啊
另外添加网址的规则,斑竹能不能写的详悉一点啊
我添加了几个ftp的,都不行啊      
Just like it.

TOP

代理设置在/etc/apt/apt.conf文件里面设置

用命令设置应该是这样的:

apt-config -o ACQIURE::http=host:port
apt-config -o ACQIURE::ftp=host:port

man apt-config
man apt.conf      

TOP

没想debian的特点也给redhat学了。
不知道大家的使用效果如何。

如果我要从8.0升级到9.0,是否也可以用apt-get dist-update?      

TOP

synaptic在rh9里不能用啊?
怎么办啊?
我是从rh8升级安装的
升级时对apt没有处理,系统提示是“没有建议”      
Just like it.

TOP

可以了,这里有
http://ftp.freshrpms.net/pub/freshrpms/redhat/9/      
Just like it.

TOP

可以说当安装了apt后我对整个linux的软件安装和管理方式的看法产生了很大的改变。从某种角度上说比WINDOWS的软件安装还方便,呵呵。连SETUP都不用双击了,下载完毕自动安装。      

TOP

安装apt,用tar包编译时出现如下错误。

creating libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for strerror in -lcposix... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for library containing gethostbyname... none required
checking for library containing connect... none required
checking db1/db.h usability... no
checking db1/db.h presence... no
checking for db1/db.h... no
checking rpm/rpmlib.h usability... yes
checking rpm/rpmlib.h presence... yes
checking for rpm/rpmlib.h... yes
checking for rpmdbOpen in -lrpmdb... no
checking for rpmdbGetIteratorOffset in -lrpm... no
checking for rpmdbFirstRecNum in -lrpm... no
checking for RPM version... none
configure: error: No RPM version for development was found in your system.

用rpm包安装
[root@star-moon apt-0.5.5cnc5]# rpm -iv apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4.i386.rpm
warning: apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4.i386.rpm: V3 DSA signature: NOKEY, key ID e42d54
7b
error: Failed dependencies:
        libelf.so.0 is needed by apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4
        librpm-4.1.so is needed by apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4
        librpmdb-4.1.so is needed by apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4
        librpmio-4.1.so is needed by apt-0.5.5cnc4.1-fr1.20030325a.0.rh80.4

请问,我要安哪些包才行。我发现我但rpm是4.2.是不是与此有关。谢谢。      

TOP

如果你的系统是redhat 9,使用redhat 8.0的RPM自然不行,rpm的版本号已经变了. 所有与redhat 9相关的freshrpm包都在:

http://shrike.freshrpms.net

apt for redhat 9 :

http://ftp.freshrpms.net/pub/fre ... .5cnc5-fr2.i386.rpm

apt 依赖:elfutils,elfutils-libelf,rpm

synaptic for redhat 9:

http://ftp.freshrpms.net/pub/fre ... 0.36.1-fr1.i386.rpm      

TOP

发新话题