Bug 413233 - zypper: read package list from file
Summary: zypper: read package list from file
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Enhancement (vote)
Target Milestone: ---
Assignee: Jan Kupec
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 13:43 UTC by Thomas Göttlicher
Modified: 2008-09-18 15:59 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)