Page 1 of 1

rollback options

PostPosted: Aug 14th, '14, 17:36
by theKbStockpiler
I'm looking for a method to re-install/save old packages so if a serious bug is introduced I can rollback. I tried a old mandriva version of urpmi.recover but I think only the help file installed correctly because it is not functional. I have gotten a version of rpmrebuild installed but I have not tried it out yet. Is there any commands I'm not aware of I could investigate?

Thanks!

Re: rollback options

PostPosted: Aug 14th, '14, 18:39
by jkerr82508
Have you tried
Code: Select all
urpmi --downgrade

https://bugs.mageia.org/show_bug.cgi?id=6655#c16

(Older package versions for stable releases are always available in the repo's.)

You can also save packages that are installed by editing /etc/urpmi/urpmi.cfg and adding at the top of the file:
Code: Select all
{
   no-clean
}

By default the packages will be saved in /var/cache/urpmi/rpms

Jim

Re: rollback options

PostPosted: Aug 18th, '14, 09:47
by jiml8
I do a daily backup using rsync in a cron job. I have described my mechanism on the "wizard suggests" forum sometime last fall.

On those occasions when I need to roll back (and it HAS happened), I simply rsync from the backup into my system with the --delete option set. No muss, no fuss, no bother, and only one line of commands.