开发者

How to use an RPM option in a yum upgrade?

开发者 https://www.devze.com 2022-12-24 19:41 出处:网络
I need to upgrade an RPM installed vi开发者_如何学编程a YUM, which has an fatal bug in its postun section.

I need to upgrade an RPM installed vi开发者_如何学编程a 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?


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号