How to display the obsoleted packages and versions of a RPM?

NeilZhang
NeilZhang
管理员
140
文章
106.8千
浏览
Linux评论175字数 157阅读0分31秒阅读模式

These days I patched some servers using a standard script and it run successfully on most nodes until last night.

It failed on two nodes and the primary issue was about the python34 package.

I got below messages from the log:

Package python34.x86_64 0:3.4.9-1.el7 will be obsoleted
....
Package python34-libs.x86_64 0:3.4.9-1.el7 will be obsoleted

While there were other packages required them so they could not be removed.

The new replacing package named python3 and it is a 3.6 version, while I also found it worked well with python34 on other servers.

I thought maybe the newer python34 would not be obsoleted by the python3 package and it took me several hours to get below command:

[root@sxxxxx ~]# rpm -q --qf '[%{obsoletename} %{obsoleteflags:depflags} %{obsoleteversion}\n]' python3
python36 < 3.6.8-10.el7
python34 < 3.4.9-3
[root@sxxxxx ~]# rpm -qa|grep '^python34-3'
python34-3.4.10-2.el7.x86_64

It confirmed my conclusion clearly. How to display the obsoleted packages and versions of a RPM?

 
  • 本文由 NeilZhang 发表于11/10/2019 05:20:08
  • Repost please keep this link: https://www.dbcloudsvc.com/blogs/linux/how-to-display-the-obsoleted-packages-and-versions-of-a-rpm/
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定