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" -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org