I'm looking at a reliable way to find how many installed packages I have on my OpenSUSE Leap 15.3 system. I tried:
# 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
What's the difference between these commands commands?