Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要升级通过 YUM 安装的 RPM,它的 postun 部分有一个致命错误。
当我运行“yum upgrade”时,这将运行(并删除程序的用户,这是我不想发生的)。
我知道如果我直接使用 rpm,我可以使用“-nopostun”选项跳过这一部分,但我看不到从 yum 的手册页访问该选项的方法。
有人知道解决这个问题的方法吗?
(回答我自己的问题......)
看起来就像执行“rpm --erase --nopostun”来删除坏的 rpm,然后运行“yum install”来重新安装好的新版本一样简单。
还有可以使用的“yum-tsflags”插件,这意味着你仍然可以在最近的 yum 中获得历史等......但它应该是如此罕见,这并不重要。