On Sun, Mar 24, 2024 at 4:43 PM American Citizen <[email protected]>
wrote:

>
> On 3/24/24 07:55, Robert Citek wrote:
> > zypper se --installed-only --format ta
>
> this failed too
>
> localhost:/ # zypper se -installed-only -format tabular | tee 000
> The flag o is not known.
> localhost:/ #
>
> So do we have any script which works??
>

That's too bad that zypper can only pretty print.  Try this to reformat the
output:

zypper search --installed-only --details |
  fgrep '|' | tail -n +2 | tr -s ' |' = | cut -d= -f2,4 |
  tee /tmp/suse.packages.txt

You should see output that looks like this:

aaa_base=84.87+git20180409.04c9dae-150300.10.6.2
bash=4.4-150400.25.22
bash-sh=4.4-150400.25.22
...

This output will be used for a zypper install.  Something like this:

cat /tmp/suse.packages.txt | xargs zypper install --no-confirm

Ultimately, I'm trying to recreate a system with the exact same packages
and files as yours.

Regards,
- Robert

Reply via email to