Hi,!
I am developping something similar to Autorpm its called syncrpm.
Syncrpm (GPL) is coded in object Oriented Pascal :) yep in pascal using the
GPL Free Pascal Compiler its work great! and it use ncftp for downloading
stuff.
The goal of syncrpm is to keep installed packages synchronized with new
cooker's packages.
How its work ( I am not sure it was the best way!)
2-) First I am doing a rpm -q -a > a file1 then store in array1
3-) Second I am doing a ncftpls path/to/cooker/rpms/ > a file2 the store in
array2
4) Then compare version and sub-version if oldversion < newversion then
ncftpget PATH/to/new/rpms.586.rpm.
5) rpm -Uvh newrpm.rpm
PROBLEMS!
1-)How can I solve dependencies? I mean I download then Install (1 by 1)
2-)How can I redirect into a file the result of the following command :
rpm -Uvh newrpm.rpm > afile (that didnt work) cause I want to mail the
output result ex: cat /tmp/rpmlog | mail ....
Send me comments or suggestions.. if you want to see the code I can upload
somewhere.
thanks
Emmanuel Par�
GIS/Programming
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.linux-mandrake.com