On 07/02/2015 02:08 PM, Anton Aylward wrote:
On 07/02/2015 06:25 AM, ellanios82 wrote:
- is it so that the recipe for re-install is ?? :
zypper install `cat /backup/installed-software.log | tr "\n" " "`
I doubt it very much!
Zypper wants it all on one line so you'll need a shell script something line and the "tr" might do that but you are probably going to run into a command line overflow. The suggestions to use 'xargs' addresses that. RTFM.
Secondly, as Carlos points out, that doesn't give you the repository information.
Rather than just "rpm -qa" for the lsiting uyou are going to need to get the basename and the repository.
Try
rpm --querytags
to see you options
:-)
This may (or may not) be more use
rpm -qa --qf "%{NAME}\t%{DISTURL}\n"
but you'll need a specific step-and-repeat script to make use of it. No you cant do that all on one line! RTFM for zypper as well. Look at "URI"
........................ Because recovery from a system crash is such a hard experience , . . . there must be someone knowledgeable on the List who Knows the correct tried-and-tested incantation to get zypper to re-install the output from the text file produced by : rpm -qa > Text-File - this must be basic housekeeping knowledge regards
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org