Bugzilla – Bug 413233
zypper: read package list from file
Last modified: 2008-09-18 15:59:56 UTC
Passing the names of the packages for installation to zypper via commandline option has its limits. For example kdesu, used by the updater applet, obviously fails to run a command with a lenght of ~1000 chars. It would be nice if zypper could read a list of patches/packages from a file.
It should be possible to specify whether the listed names specify patches or packages. Perhaps a xml file would provide this functionality.
If 'zypper sh' could read from an input file would be "gold standard". :-) Example: #!/usr/bin/zypper -x -l install -t patch foo install -t package bar
How about this instead: kdesu -c "xargs zypper in -t patch < patches.lst"
Martin, thanks for this hint. I've solved the problem using xargs. Jano, I think reading packages from a file isn't needed anymore for the updater applet as xargs works.
Good. Thanx Martin :O)