zy_sunshine 发表于 2012-10-1 14:30:12

anaconda 你是要逆天啊

zhangyang09 [ ~ ]$ history | grep "sudo.*aptitude.*install"
1447sudo aptitude install python-selinux
1450sudo aptitude install pykickstart
1496sudo aptitude install yum
1819sudo aptitude install libnewt-dev
1823sudo aptitude install libxcomposite-dev
1827sudo aptitude install libglib2.0-dev
1847sudo aptitude install librpm-dev
1865sudo aptitude install gtk-doc-tools
1867sudo aptitude install libaudit-dev
1870sudo aptitude install libblkid-dev libaudit0
1872sudo aptitude install libext2fs2
1876sudo aptitude install ext2fs-dev
1879sudo aptitude install libiscsi-bin libiscsi-dev libiscsi1

编译一个anaconda要这么多依赖,好麻烦

编译完后,运行还要有几个anaconda自有库(中间编译n多错误,反正凑合着屏蔽掉了)
$ yum whatprovides /usr/lib/python2.7/site-packages/block
Loaded plugins: langpacks, presto, refresh-packagekit
python-pyblock-0.53-2.fc17.i686 : Python modules for dealing with block devices
Repo      : fedora
Matched from:
Filename    : /usr/lib/python2.7/site-packages/block

下载源码
yumdownloader --source python-pyblock-0.53-2.fc17.i686

homepage URL: http://fedoraproject.org/wiki/Anaconda
进去搜 block, 怎么可能有

anaconda的东西不在anaconda源码树中,绕一大圈子也没发现主页在那,源码仓库都没找到...

jiangtao9999 发表于 2012-10-1 16:10:15

:mrgreen:

sejishikong 发表于 2012-10-2 10:41:10

anaconda非常之麻烦,以前我尝试过一次,马上就放弃了。本来我在2.1以后有段时间因为mi没有更新,想直接换成它,不过太不友好了。

zy_sunshine 发表于 2012-10-2 17:58:47

anaconda 代码质量很差,之前用backend,2012年几个人换成了payload模式安装,同是操作yum,前者耦合度高的吓人,后者还好一些,但ananconda 的一些模块之间已经耦合的不行了(比如kickstart),所以代码也凑合。
测试是用的mock,模仿测试,效果比较差的。

不是因为yum没有文档我都懒得看anaconda里面的代码。

jiangtao9999 发表于 2012-10-2 19:35:59

:mrgreen:
重写吧~~

zy_sunshine 发表于 2012-10-2 21:28:55

我打算把yum搞定,然后就少碰或不再碰rpm相关的东西了。
页: [1]
查看完整版本: anaconda 你是要逆天啊