When I try to install anything with YaST it insists on installing other software I have removed with zypper and don’t want. Normally I would block the unwanted software using “zypper al” (add lock) and continue, but it’s a long list and I can’t mark/copy and paste it to zypper. Is there some way I can redirect the list to a text file I can edit and feed to “zypper al”?
You could use “zypper in --dry-run xxx” to just get the list of packages that are going to be installed.
But your actual “problem” is that those packages are being recommended by other installed packages or patterns.
To prevent them from being installed again, enable “Ignore Recommended Packages For Already Installed Packages” in YaST’s “Options” menu (or specify the “–no-recommeds” switch to zypper), uninstall the patterns that recommend them, or prevent the installation of recommended packages completely (set “solver.onlyRequires = true” in /etc/zypp/zypp.conf).
There are lot of threads about this topic already…