apt4rpm已经成功port到ML
为了解决ML软件安装时的包依赖问题,决定将apt-get体系port到ML上来。经过几天的摸索,终于成功。具体实现方法如下:
以下步骤在Magic1.1f测试通过。
第一步,安装apt-get。
rpm -ivh apt-0.5.5cnc6-fr1.i386.rpm
第二步,拷贝ml1.1f光盘上所有文件到一个目录,我用的是/cd1 。
第三步,生成目录文件:
首先删除/cd1/Magic/base目录
rm -rf /cd1/Magic/base
改变/cd1/Magic/RPMS名称为RPMS.general
然后重新建立apt-get的base目录
genbasedir /cd1/Magic/
第四步,加入apt-get的sourcelist。编辑/etc/apt/sources.list文件(没有请建立),加入一行
rpm file:/cd1 Magic general
完成,以后就可以用apt-get install 包名称来安装软件了,再也不用担心的包依赖问题了。apt-get remove 包名称可以用来删除软件包,apt-get update可以更新软件包等等,还有一些其他的功能。具体可以参考这篇文章。
下一步将测试光盘和网络安装的功能。软件包光盘可以用apt-cdrom添加,只要将所有文件加上生成的base目录一起烧到光盘上,apt-cdrom应该就可以识别了。网络可以使用http或者ftp协议,将同样的文件和目录放到相应的服务器目录,然后加入sourcelist就可以了。
更令人激动的是apt4rpm有一个图形界面的前端synaptic(截图在附件中),有了它,在ML里搜索,安装和卸载软件就易如反掌了。 :-)
附件中包含了apt4rpm的rpm包,源码包和synaptic的tar.gz包,请大家试用,并多提些建议和意见。 不錯! 请大家广为测试,测试稳定后将正式纳入本次发行版。 为广大linuxfans造福,值得信赖! 厉害,有了magic就等于有了gentoo和debian
感觉好爽 兼收并蓄,linux的精神高高飘扬! :mrgreen::mrgreen::mrgreen: 不过, 当我安装 synaptic 时, 产生如下错误 (apt 已安装):
you need the apt-pkg headers installed to compile synaptic. 你还需要这个包
http://ftp.freshrpms.net/pub/freshrpms/redhat/9/apt/apt-devel-0.5.5cnc6-fr1.i386.rpm 下载了 devel 包, ./configure 似乎没问题, 但 make 时, 最终得到如下结果:
......
make: Leaving directory `/work/downloads/synaptic-0.43.1/gtk'
Making all in data
make: Entering directory `/work/downloads/synaptic-0.43.1/data'
make: Nothing to be done for `all'.
make: Leaving directory `/work/downloads/synaptic-0.43.1/data'
Making all in man
make: Entering directory `/work/downloads/synaptic-0.43.1/man'
make: Nothing to be done for `all'.
make: Leaving directory `/work/downloads/synaptic-0.43.1/man'
Making all in pixmaps
make: Entering directory `/work/downloads/synaptic-0.43.1/pixmaps'
make: Nothing to be done for `all'.
make: Leaving directory `/work/downloads/synaptic-0.43.1/pixmaps'
Making all in po
make: Entering directory `/work/downloads/synaptic-0.43.1/po'
make: Leaving directory `/work/downloads/synaptic-0.43.1/po'
make: Entering directory `/work/downloads/synaptic-0.43.1'
make: Nothing to be done for `all-am'.
make: Leaving directory `/work/downloads/synaptic-0.43.1'
make: Leaving directory `/work/downloads/synaptic-0.43.1'
make install 时, 也是 ....nothing to be done for ... (如下)
......
make: Leaving directory `/work/downloads/synaptic-0.43.1/po'
make: Entering directory `/work/downloads/synaptic-0.43.1'
make: Entering directory `/work/downloads/synaptic-0.43.1'
make: Nothing to be done for `install-exec-am'.
make: Nothing to be done for `install-data-am'.
make: Leaving directory `/work/downloads/synaptic-0.43.1'
make: Leaving directory `/work/downloads/synaptic-0.43.1'
我经常碰到这问题, 怎么回事? 多谢指教, 先谢了! 对了, 敲进去的汉字怎么有的大, 有的小? 已经可以了。因为你原来编译过一次。如果要重新编译,可以make clean,再make. it is useless to "make clean". it is useless to "make clean".
最好make clean 除了重新安装系统外,有办法安装Debian软件吗?有办法把系统目录树更新成Debian规范的吗?我查了好久,但是资料似乎不多。
我在红旗下用APT4RPM。 下载了 devel 包, ./configure 似乎没问题, 但 make 时, 最终得到如下结果:
......
make: Leaving directory `/work/downloads/synaptic-0.43.1/gtk'
Making all in data
make: Entering directory `/work/downloads/synaptic-0.43.1/data'
make: Nothing to be done for `all'.
make: Leaving directory `/work/downloads/synaptic-0.43.1/data'
Making all in man
make: Entering directory `/work/downloads/synaptic-0.43.1/man'
make: Nothing to be done for `all'.
make: Leaving directory `/work/downloads/synaptic-0.43.1/man'
Making all in pixmaps
make: Entering directory `/work/downloads/synaptic-0.43.1/pixmaps'
make: Nothing to be done for `all'.
make: Leaving directory `/work/downloads/synaptic-0.43.1/pixmaps'
Making all in po
make: Entering directory `/work/downloads/synaptic-0.43.1/po'
make: Leaving directory `/work/downloads/synaptic-0.43.1/po'
make: Entering directory `/work/downloads/synaptic-0.43.1'
make: Nothing to be done for `all-am'.
make: Leaving directory `/work/downloads/synaptic-0.43.1'
make: Leaving directory `/work/downloads/synaptic-0.43.1'
make install 时, 也是 ....nothing to be done for ... (如下)
......
make: Leaving directory `/work/downloads/synaptic-0.43.1/po'
make: Entering directory `/work/downloads/synaptic-0.43.1'
make: Entering directory `/work/downloads/synaptic-0.43.1'
make: Nothing to be done for `install-exec-am'.
make: Nothing to be done for `install-data-am'.
make: Leaving directory `/work/downloads/synaptic-0.43.1'
make: Leaving directory `/work/downloads/synaptic-0.43.1'
我经常碰到这问题, 怎么回事? 多谢指教, 先谢了!
http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/1/synaptic/synaptic-0.45-1.fr.src.rpm
页:
[1]
2