Hey,<br><br>i`ve just completed my little php+mysql script that is resolving dependency`s.<br>what i`ve done is: i`ve copied all the rpm files from the FC7 Test 2 DVD to my HDD. than i installed this little program: <a href="http://cekirdek.uludag.org.tr/~meren/php_rpm/">
http://cekirdek.uludag.org.tr/~meren/php_rpm/</a><br>and started putting ALL the RPM headers in a MySQL database. the total database is now 96MB but about 92MB of that is plain USELESS for me. so that leaves the full fedora base stuff about 4 MegeBytes when i make a database dump of that with gzipped compression the full size of that is: 
563.1 KB (576583 bytes) and that`s with the package description. without the changelog. all things that you than have:<br><br>PROVIDENAMES<br>PROVIDEVERSION<br>REQUIRENAMES<br>REQUIREVERSION<br>DESCRIPTION<br>rpmname_to_id (i added that to work based on id`s instead of names)
<br><br>this is so small and yet YUM requires about 10MB? for the full base stuff.. now did i found out a new way to do this or what?<br><br>here is a sample of the output that i get when i tell my script that i want to install the kernel:
<br><br>(stripes are increased by 2 at a time)<br><br> coreutils<br> grep<br> pcre<br> libgcc<br>-- glibc<br>-- glibc-common<br>-- tzdata<br>---- basesystem<br>---- setup<br>------ filesystem<br>---- libstdc++<br>-- libselinux
<br>-- libsepol<br>---- mcstrans<br>---- libcap<br>---- pam<br>---- audit-libs<br>------ cracklib<br>-------- cracklib-dicts<br>---------- mktemp<br>------------ sed<br>-- module-init-tools<br>---- initscripts<br>---- udev
<br>---- MAKEDEV<br>------ ethtool<br>-------- glib2<br>---------- net-tools<br>------------ e2fsprogs<br>------------ e2fsprogs-libs<br>------------ device-mapper-libs<br>-------------- device-mapper<br>-------------- mingetty
<br>---------------- util-linux<br>---------------- ncurses<br>------------------ zlib<br>-------------------- popt<br>------------------ sysklogd<br>------------------ logrotate<br>-------------------- bash<br>-------------------- SysVinit
<br>------ mkinitrd<br>------ gzip<br>------ less<br>-------- libdhcp4client<br>---------- libdhcp6client<br>---------- openssl<br>---------- krb5-libs<br>------------ cpio<br>-------------- dmraid<br>-------------- kpartx
<br>---------------- findutils<br>------------------ libnl<br>-------------------- parted<br>-------------------- readline<br>---------------------- lvm2<br>------------------------ libdhcp<br>-------------------------- nash
<br>---------------------------- tar<br>---------------------------- info<br><br>so a very basic installation should probably only have those packages installed if you want to install the absolute minimal.<br><br>now for the timings. i`m not quite happy yet about the results because it took about 30 seconds for my computer to compile the list you see above. but than take in mind that the database isn`t optimized, the queries aren`t optimized and i`m doing this recursively with queries. best thing would probable be to fetch all the stuff one time and than let php do the rest. i atleast expect that to be alot faster. perhaps even the fastest dependency checker that`s currently existsing.
<br><br>now why did i posted this stuff here.<br>well.. yum is currently undergoing some work to have those dependency's checked alot faster. and this could perhaps be usefull to them (the yum creators). so if they want to see the code.. just ask me.
<br>i also would like to put this online but i don`t have a host to store this stuff on. the default php timeout is far from enough (30 seconds == to little for this dependency checker in it`s current state.)<br><br>there is also a disadvantage if this system is ever gonna be user for yum. the current header style simply won`t work because it will all needs to be in a gzipped sql file and not in a (extremely big) .XML file.
<br><br>so ehm.. do you guys like this?<br>