[Bug 803130] New: provide --with-rpm-db switch in context with --download only for zypper.
https://bugzilla.novell.com/show_bug.cgi?id=803130 https://bugzilla.novell.com/show_bug.cgi?id=803130#c0 Summary: provide --with-rpm-db switch in context with --download only for zypper. Classification: openSUSE Product: openSUSE 12.3 Version: RC 1 Platform: All OS/Version: SUSE Other Status: NEW Severity: Enhancement Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: estellnb@elstel.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:18.0) Gecko/20100101 Firefox/18.0 Sometimes it is necessary to keep a given machine offline. Debian developers know this since long and have provided an own option to apt-get in order to use the /var/lib/dpkg/status of another machine with apt-get. Similarely we could provide an own option for zypper in order to use the rpm-database of another machine and then just invoke it with the download-only switch in order to fetch packages to be installed on another machine later on. If you want me to test oS 12.3 RCxes extensively also on newer hardware this will be an absolute requirement (see f.i. Bug 803094). Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803130 https://bugzilla.novell.com/show_bug.cgi?id=803130#c1 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low --- Comment #1 from Michael Andres <ma@suse.com> 2013-02-14 12:13:49 CET ---
use the rpm-database of another machine
The only workaround we have would be using 'zypper --root /tmp/myroot'. The other machines /etc/zypp/ directory and /var/lib/rpm/Packages file had to mirrored into the /tmp/myroot tree beforehand. Then zypper --root /tmp/myroot up --download-only Packages will then be downloaded to /tmp/myroot/var/cache/zypp/packages. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803130 https://bugzilla.novell.com/show_bug.cgi?id=803130#c2 --- Comment #2 from Elmar Stellnberger <estellnb@elstel.org> 2013-02-14 13:20:06 UTC --- Sorry, that does not really help unless both machines have the same arch. Or is there any method of tricking an i686 machine into downloading x86_64 packages? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803130 https://bugzilla.novell.com/show_bug.cgi?id=803130#c3 --- Comment #3 from Michael Andres <ma@suse.com> 2013-02-14 15:21:14 CET --- You can try ZYPP_TESTSUITE_FAKE_ARCH=x86_64 zypper --root ... I'm just uncertain whether rpm.i686 processes a x86_64 db correctly, resp. whether libsolv tools correctly convert the rpm database. I suppose it will work as long as you don't mix endianness (e.g. use a ppc db on intel architecture or vice versa). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803130 https://bugzilla.novell.com/show_bug.cgi?id=803130#c4 --- Comment #4 from Elmar Stellnberger <estellnb@elstel.org> 2013-02-14 16:01:57 UTC --- debuginfo libkde4-debuginfo plasma-addons-debuginfo plasma-addons-lancelot-debuginfo plasma-addons-marble-debuginfo 14 new packages to install. Overall download size: 167.7 MiB. Download only. Continue? [y/n/?] (y): y Problem occured during or after installation or removal of packages: ZYPP_TESTSUITE_FAKE_ARCH set. Commit not allowed and disabled. Please see the above error message for a hint. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803130 https://bugzilla.novell.com/show_bug.cgi?id=803130#c5 --- Comment #5 from Michael Andres <ma@suse.com> 2013-02-14 17:24:05 CET --- :( Ok, then edit the (/tmp/myroot)/etc/zypp/zypp.conf and set 'arch = x86_64'. Even with --root the zypp.conf below /tmp/myroot is not loaded, so it needs an envvar to accomplish this: ZYPP_CONF=/tmp/myroot/etc/zypp/zypp.conf zypper --root ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803130 https://bugzilla.novell.com/show_bug.cgi?id=803130#c6 --- Comment #6 from Elmar Stellnberger <estellnb@elstel.org> 2013-02-14 21:16:42 UTC --- That works now fine; thx; will provide backtraces also for kde4, soon. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com