Bug 413233

Summary: zypper: read package list from file
Product: [openSUSE] openSUSE 11.0 Reporter: Thomas Göttlicher <tgoettlicher>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: mvidner
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Thomas Göttlicher 2008-07-30 13:43:36 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.
Comment 1 Thomas Göttlicher 2008-07-30 13:45:38 UTC
It should be possible to specify whether the listed names specify patches or packages. Perhaps a xml file would provide this functionality.
Comment 2 Thomas Göttlicher 2008-07-30 13:54:55 UTC
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
Comment 3 Martin Vidner 2008-07-30 14:34:52 UTC
How about this instead:
kdesu -c "xargs zypper in -t patch < patches.lst"
Comment 4 Thomas Göttlicher 2008-08-07 14:27:57 UTC
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.
Comment 5 Jan Kupec 2008-09-18 15:59:56 UTC
Good. Thanx Martin :O)