On 4/21/23 16:18, Robert Kaiser wrote:
On 4/19/23 22:36, Achim Gratz wrote:
I was hoping for some incantation that at least weeds out packages that were installed as dependencies of others or as part of a pattern from this list.

I was wondering about an easy way to get such a list multiple times in the past as it would be a handy thing to have as a part of backups. I don't want to back up the actual files of the installed packages, just that list, any configs, and any data. That should be a good set to start with if I have to reconstruct a "dead" machine from a backup.

I saw the commands in this thread, but they look rather convoluted and therefore easy to get broken by some changes in the future.

KaiRo


This is what I use to do reinstalls - I delete the unneeded lines

 zypper se -si | awk '{print $3}' | grep -v openSUSE | grep -v patterns