yum : rollback facility

well actually this concept was first proposed to me by one of my seniors in the following post
http://220.225.214.101/node/76 ,
in short yum is a software manager used in RPM based systems , if u are new to this world u can get more on yum at : http://fedoraproject.org/wiki/Tools/yum
what we propose to do here is provide a functionality which rollbacks all the software modifications done by yum to a particular date following are two basic ideas for doing exactly that the first one was what i thought of and the second one a little more innovative was the one suggested by my friend :
1 . parse the contents of the yum.log created by yum and issue a recursive command "rpm -e [package name] --nodeps " , where the user enters a date to rollback to and the [package name] stands for all packages that were installed after that date , this will recursively remove all the files after that date without checking for dependencies , and i planned to do this all in a C program .
2. this is as far as i know a far better method, my firend Kalyan , suggested that, we could run a cron job every day which would store the output of " yum list grep installed " in a file in a standard directory created by the utility , and when the user entered a date for rollback , we would take a ' diff ' of the present output of " yum list grep installed " and the contents stored in the file for the rollback date ,and thus would use the same rpm -e command for the differing files .
isn't that great stuff ??
lets get onto coding that !!!

Comments

Popular posts from this blog

Was history ! :)

installing RadRails on Eclipse ...........