You can query RPM database for architecture of installed packages. This command will list all installed packages and their architecture:
rpm -qa --queryformat '%{NAME} %{ARCH}\n'
So if you want to find 32-bit packages only you can check the above list for architectures i686, i586, i486 and i386:
rpm -qa --queryformat '%{NAME} %{ARCH}\n' | grep 'i[6543]86' | cut -d' ' -f1
如何用rpm查看package的架构
最新推荐文章于 2023-03-13 16:33:15 发布