tags:

views:

80

answers:

2

I need to upgrade an RPM installed via YUM, which has an fatal bug in its postun section.

This will get run (and delete the program's user, which is what I want to not happen) when I run "yum upgrade".

I know that if I were using rpm directly, I could just use the "-nopostun" option to skip this section, but I don't see a way of accessing that option from yum's man page.

Anyone know a way round this?

A: 

(Answering my own question...)

It looks as though it might be as simple as doing "rpm --erase --nopostun" to remove the bad rpm, and then running "yum install" to reinstall the good new version.

Rachel
A: 

There is also the "yum-tsflags" plugin which can be used, which means you still get history etc. in recent yum ... but it should be so rare it doesn't matter too much.

James Antill