Page 1 of 1
To cancel an update

Posted:
May 22nd, '11, 18:55
by Lebarhon
It is sometimes very helpful to cancel a just done update, because of a bug, a feature that disappeared or a conflict. Today it is impossible to easily replace a n+1 version of a package by the n version and I miss that feature. (Windows allows to cancel an update)
Re: To cancel an update

Posted:
May 23rd, '11, 09:53
by Sfiet_Konstantin
Do you mean downgrading ?
I do not know if it is easily doable because you have to keep old RPM (takes place in mirrors, can build system handle it ? etc.)
But if you already have the RPM, you can easily downgrade using the "rpm" command.
Maybe a GUI for downgrading could be useful too
Re: To cancel an update

Posted:
May 23rd, '11, 19:39
by Lebarhon
It's downgrading for a short time.
Nothing to change about the mirrors, the system could keep a copy of the n version before replacing it by the n+1 version, so you could write back the n version.
I could use the "rpm" command if I knew where to find the n version of these packages. It is no more on any mirror.
Re: To cancel an update

Posted:
May 25th, '11, 09:52
by Sfiet_Konstantin
Interesting
Maybe a list of "core" RPM should be selected and be kept during an update (for example in /var/cache/urpmi). And add an option for urpm* to trigger a downgrading.
The RPM to be kept should be X / glibc / maybe some core KDE / GNOME libs
Re: To cancel an update

Posted:
May 25th, '11, 14:22
by jkerr82508
Add the following to the top of /etc/urpmi/urpmi.cfg
- Code: Select all
{
post-clean : 0
}
All downloaded rpms will be saved in /var/cache/urpmi.
Jim
Re: To cancel an update

Posted:
May 25th, '11, 15:00
by Sfiet_Konstantin
jkerr82508 wrote:Add the following to the top of /etc/urpmi/urpmi.cfg
- Code: Select all
{
post-clean : 0
}
All downloaded rpms will be saved in /var/cache/urpmi.
Jim
Cool
But my var is not so huge, and I'm very lazy : I don't want to clean it all the time ...

Re: To cancel an update

Posted:
May 25th, '11, 21:02
by Lebarhon
Sfiet_Konstantin wrote:Cool
But my var is not so huge, and I'm very lazy : I don't want to clean it all the time ...

Exactly, it's only in case of problems. Moreover, it's only the first step, you still have to uninstall the unwanted packages and reinstall the ones in var/cache/urpmi, and it isn't very friendly.