To cancel an update

This forum is dedicated to new ideas, suggestions and proposals.

To cancel an update

Postby Lebarhon » May 22nd, '11, 18:55

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)
Lebarhon
 
Posts: 408
Joined: Mar 22nd, '11, 22:24
Location: France

Re: To cancel an update

Postby Sfiet_Konstantin » May 23rd, '11, 09:53

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
Sfiet_Konstantin
 
Posts: 157
Joined: Apr 1st, '11, 19:59

Re: To cancel an update

Postby Lebarhon » May 23rd, '11, 19:39

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.
Lebarhon
 
Posts: 408
Joined: Mar 22nd, '11, 22:24
Location: France

Re: To cancel an update

Postby Sfiet_Konstantin » May 25th, '11, 09:52

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
Sfiet_Konstantin
 
Posts: 157
Joined: Apr 1st, '11, 19:59

Re: To cancel an update

Postby jkerr82508 » May 25th, '11, 14:22

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
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: To cancel an update

Postby Sfiet_Konstantin » May 25th, '11, 15:00

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 ... :oops:
Sfiet_Konstantin
 
Posts: 157
Joined: Apr 1st, '11, 19:59

Re: To cancel an update

Postby Lebarhon » May 25th, '11, 21:02

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 ... :oops:

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.
Lebarhon
 
Posts: 408
Joined: Mar 22nd, '11, 22:24
Location: France


Return to Ideas and suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron