我正在寻找一种可靠的方法来查找我的 OpenSUSE Leap 15.3 系统上安装了多少个软件包。我试过了:
# number of available packages in the repos
vm-admin:~ # zypper se -s | wc -l
55800
# number of installed packages from the repos
vm-admin:~ # zypper se -si | wc -l
1490
# number of installed packages?
vm-admin:~ # rpm -qa | wc -l
1091
# number of available packages?
vm-admin:~ # pkcon get-packages | grep Available | wc -l
51058
# number of installed packages?
vm-admin:~ # pkcon get-packages | grep Installed | wc -l
1086
这些命令命令之间有什么区别?