Comparing packege sets of two tumbleweed installs

Hi all,

So I have two machines both running tumbleweed, though one was a migration from Leap, and the other a native TW install.
Is there an easy way of exporting the list of installed packages on both systems so that I can find the packages installed on one that are not on the other?

I hopefully want to do this to see if I can chase down my xrdp problems, it works one one and not the other.

Cheers.

Phill.

Sure, I don’t know how familiar you are with bash scripting, but you would begin with

rpm -qa > pkgs-$HOST

on each. That would give you 2 sets of all installed packages

And then transfer one of those to the other system.
And use the diff command?

Better yet, use the --qf (--queryformat) option for some more fine control about the fields that you want to see, and of course sort the result to be able to use diff:

sh@meteor:~> rpm -qa --qf '%{name}  %{version}-%{release}\n' | sort
7zip  26.02-2.1
aaa_base  84.87+git20260610.3b5a868c-1.3
aaa_base-extras  84.87+git20260610.3b5a868c-1.3
accounts-qml-module  0.7git.20231028T182937~05e79eb-1.10
accountsservice  23.13.9-12.3
acl  2.4.0-1.2
acpica  20260408-2.4
adobe-sourcecodepro-fonts  2.038-1.10
adobe-sourcesans3-fonts  3.052-1.7
adobe-sourcesanspro-fonts  2.045-2.13
adobe-sourceserifpro-fonts  3.000-2.13
adwaita-fonts  50.0-1.2
...

See also man rpm and here.

2 Likes