On 2015-04-07 22:39, don fisher wrote:
I wanted to build a openSuse 13.2 system on an AMD rather than my current Intel platform. I was planning on installing 13.2 from the installation disk, then adding the packages required to mirror my current system.
I have studied a lot of the zypper manpage, bloody 1953 lines long! I found a file /var/log/zypp/history that appears to contain all of the updates to my system. The manpage suggests "see the shell command". But the manpage also says "shell support is not complete so expect bugs there".
The history file appears to have installation date and time, a command, package name, version, architecture, followed by what appears to be maybe some path to the RPM?
Is this what the shell is expecting, and will it read these lines and update my other machine? Or is this the wrong approach all together? The manpage states that if I had set the keeppackages property, all of the RPMs would be saved in /var/cache/zypp/packages and I could use zypper to install them directly from there. But I did not know about that property until recently.
Comments, suggestions?
Thanks Don
Hi Don, You can query the rpm db. This will get you a list of package names: rpm -qa --qf "%{NAME} ">installed_rpms Then you could put this on your new system and run something like: zypper in $(cat installed_rpms) -Michael -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org