At the time you first install the system do: “yay -Qqe >newinstalls.txt” which will create a list of installed packages. Then later you can do it again but to another file: “yay -Qqe >nowinstalls.txt”. Then do: “diff newinstalls.txt nowinstalls.txt” which will give you a list of the differences between the two.
My first wife