zypper equivalent of "rug history" command
Do you remember the “rug history” command that you could use to list (and search through) previously installed packages?
With rug you could use the “rug history” command to list previously installed packages but strangely this command is missing from zypper.
The good news is that whilst there is no ‘zypper history’ command, any packages installed or updated through zypper are logged in /var/log/zypp/history. The bad news is that the file also logs some other output so you can’t just ‘cat /var/log/zypp/history’ to get the equivalent output to ‘rug history’.
What you can do however is process /var/log/zypp/history to produce a similar output by using the ‘cut’ command:
cut -d "|" -f 1-4 -s --output-delimiter " | " /var/log/zypp/history | grep -v " radd "