Question

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?

Was it helpful?

Solution

(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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top