[opensuse] Is a Repo Update disk possible???
How can I make a update disk from an existing system to use on another system?. OpenSuSE appears to store all updates under /var/cache/zypp/ I wish to use the downloaded RPMs from the laptop I updated at the library on the desktop at home. At home I have dialup so the usual method would take too long. I note there is the choice for a update source to be dvd but my attempt to use a burn of the contents of the zypp directory did not work. How do I make a working update disk?? CWSIV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-04-29 a las 17:29 -0700, Carl Spitzer escribió:
How can I make a update disk from an existing system to use on another system?. OpenSuSE appears to store all updates under /var/cache/zypp/
/var/cache/zypp/packages/, actually.
I wish to use the downloaded RPMs from the laptop I updated at the library on the desktop at home. At home I have dialup so the usual method would take too long.
Well, if you configure all your repos to "keep downloaded packages", everything you download with yast or zypper for install will be saved on directories below the one written above. The directory is named after the 'alias' of the repo, not the name. So just copy over those directories from the laptop to the desktop. Just make sure the directory names are the same. You can, for instance, share that directory from the laptop via nfs so that the desktop import it. I'm doing it that way. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlNgT/8ACgkQja8UbcUWM1x6PQD/c0+IGz8G+gKO0X2oekF6jVLz zOuzlQnnOeIuBc6X4dEA/jiBKCZk0KHSe9caQGKhl0l46FW63wurVYfOzz+fmxB+ =2OID -----END PGP SIGNATURE-----
On 2014-04-29 17:29 (GMT-0700) Carl Spitzer composed:
How can I make a update disk from an existing system to use on another system?. OpenSuSE appears to store all updates under /var/cache/zypp/
I wish to use the downloaded RPMs from the laptop I updated at the library on the desktop at home. At home I have dialup so the usual method would take too long.
I note there is the choice for a update source to be dvd but my attempt to use a burn of the contents of the zypp directory did not work.
How do I make a working update disk??
I don't know, but I do know zypper is smart enough not to try to download files already present in the location it downloads them to, so you can copy the ones you have from your other machine there before starting zypper and save having to download them again. Presumably YaST has the same intelligence. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-04-29 a las 21:22 -0400, Felix Miata escribió:
I don't know, but I do know zypper is smart enough not to try to download files already present in the location it downloads them to, so you can copy the ones you have from your other machine there before starting zypper and save having to download them again. Presumably YaST has the same intelligence.
Yes, it does. But you have to tell both, on repo config, to keep downloaded packages, or those rpms you copy will be deleted automatically on finish. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlNgXkgACgkQja8UbcUWM1whiwD+KrkWS5GXgDlRwAeFVJwquN+4 R/OQUkywEKZGZaq7nsgA/3wfUZ+t3u/IApPRMrFPNUtNLUGqI50kb2oIed6TSk+W =hIp5 -----END PGP SIGNATURE-----
On 2014-04-30 04:21 (GMT+0200) Carlos E. R. composed:
you have to tell both, on repo config, to keep downloaded packages, or those rpms you copy will be deleted automatically on finish.
Once you've installed the copies you put into /var/lib/zypp/, there's likely no need to keep them, as presumably you copied them there, not moved those already downloaded there. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-04-29 a las 22:37 -0400, Felix Miata escribió:
On 2014-04-30 04:21 (GMT+0200) Carlos E. R. composed:
you have to tell both, on repo config, to keep downloaded packages, or those rpms you copy will be deleted automatically on finish.
Once you've installed the copies you put into /var/lib/zypp/, there's likely no need to keep them, as presumably you copied them there, not moved those already downloaded there.
True. But if you share the directory, like I do, via NFS, or via external USB disk moved from computer to computer, it is important. So I update first one machine, which downloads and saves many rpms. Then I do a second machine, which has to update the same rpms, but is not set to delete them; then I update a third machine with the same rpms: it will download them again. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlNg5SkACgkQja8UbcUWM1xA9gD6A5qbrhkx31BZYyxcflVIxV3y ahVUWpUrCMhBnbGY8s4A/073cFyZgooAMynqqErYHh7Ipu8rDnpBEKo3wjgY+jow =NdhC -----END PGP SIGNATURE-----
On Tue 29 Apr 2014 05:29:14 PM CDT, Carl Spitzer wrote:
How can I make a update disk from an existing system to use on another system?. OpenSuSE appears to store all updates under /var/cache/zypp/
I wish to use the downloaded RPMs from the laptop I updated at the library on the desktop at home. At home I have dialup so the usual method would take too long.
I note there is the choice for a update source to be dvd but my attempt to use a burn of the contents of the zypp directory did not work.
How do I make a working update disk??
CWSIV
Hi With the rpms you have and YaST Add on product creator. -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-7-desktop up 6 days 0:09, 3 users, load average: 0.02, 0.06, 0.05 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, Another way is to download rpms to a location on disk then use createrepo to generate metadata for it. example follows: --Glenn # rpm -qa | grep -i createrepo createrepo-0.9.9-10.1.2.x86_64 /usr/bin/createrepo /home/rpms-customised Spawning worker 0 with 99 pkgs Workers Finished Gathering worker results Saving Primary metadata Saving file lists metadata Saving other metadata Generating sqlite DBs Sqlite DBs complete ll /home/rpms-customised/repodata/ total 3522 -rw-r--r-- 1 root root 527018 May 1 00:07 196ed5225fb8b90387288fe364ddb9d494cc4b22a2f044d1937d3eae0f3aad83-primary.sqlite.bz2 -rw-r--r-- 1 root root 869754 May 1 00:07 8c691d084576d7cf4e13c11604c7ced3bd71a70a6a27635c43652a4355190e7d-other.sqlite.bz2 -rw-r--r-- 1 root root 248643 May 1 00:07 9ac0a79e7fa3ccf560348beba94ec142f272abae54f28151f8c021a41fbdfa48-primary.xml.gz -rw-r--r-- 1 root root 356216 May 1 00:07 bd55dbea7be6b78a3a0a6c2e2f2bc7072e6c3cf1372ecd38b410b3fd6c16e209-filelists.xml.gz -rw-r--r-- 1 root root 457891 May 1 00:07 c0126389f9b2a600e0df3822d60d56958ba28214436c33e33439f773ca8f28d9-filelists.sqlite.bz2 -rw-r--r-- 1 root root 1130948 May 1 00:07 d769280755b16deafa0f85f70a9f203c37496c8c5a9d4ca5968f69a745e8f262-other.xml.gz -rw-r--r-- 1 root root 3006 May 1 00:07 repomd.xml -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-05-01 a las 00:15 +1000, doiggl@... escribió:
Hello, Another way is to download rpms to a location on disk then use createrepo to generate metadata for it. example follows:
Interesting, thanks. However, something that people having to use limited internet connections (like I do this instant, but not tonight) is to have something that downloads the minimal repository metadata necessary to calculate an update, and then, instead of updating, generates a full download list (complete urls and files) so that we can take it to a library, friend, whatever, download it, take it back to our half-isolated machine, and do the update with that data (with no more refreshes). Fully isolated machines are more difficult. In that case, the first step is downloading the needed metadata on the library (so we need a full list), go back to the isolated machine, calculate the update off-line, with that metadata we downloaded, generate a list of packages to download, go back to the library, download them, go back to the isolated machine, complete the update. As you see, a complicated scenario, but doable with some help from devs. Currently people in this situation have to do many loop jumps to even try something similar. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlNhGZwACgkQja8UbcUWM1wxVAD/fmW4K3Cj81MRd8cKgTmTS0Fa DXrOpv9ywOC4yE6SdUQA/A7R0uHXWhYD63FDxD+QaEL/V7deQS27LsrZ3lmaTzpu =xZjX -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-04-30 a las 17:40 +0200, Carlos E. R. escribió:
As you see, a complicated scenario, but doable with some help from devs. Currently people in this situation have to do many loop jumps to even try something similar.
Another combination would be to generate on the isolated machine a metadata set reflecting the current state of the machine, then take that data to a connected machine, and have it do the update calculation and download on the spot, to an specified directory (external disk), which could then be taken to the isolated machine to complete the update. It would be as "simple" as telling yast/zypper to use a removable location for all its calculations/downloads. :-) - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlNhGvUACgkQja8UbcUWM1yQoAD+IzzMwnWoHmfKsGtBICbWybbM SA2sfoAhkM4NiqEB3zwBAIcGTBIL32AeE9F3LKNZvcJoRjE7fqHvd118SIJ1S2w2 =kgrv -----END PGP SIGNATURE-----
On Thu, 2014-05-01 at 00:15 +1000, doiggl@velocitynet.com.au wrote:
Hello, Another way is to download rpms to a location on disk then use createrepo to generate metadata for it. example follows: --Glenn
# rpm -qa | grep -i createrepo createrepo-0.9.9-10.1.2.x86_64
/usr/bin/createrepo /home/rpms-customised Spawning worker 0 with 99 pkgs Workers Finished Gathering worker results
does it exist for 32bit. I am not a big budget user. CWSIV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Carlos E. R. <robin.listas@telefonica.net> [04-30-14 19:10]:
On 2014-05-01 00:13, Carl Spitzer wrote:
does it exist for 32bit. I am not a big budget user.
Of course it does! Everything in Linux is built for both archs. O at least oss.
And it would be a very simple thing to check one's self :^( -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Tue, 29 Apr 2014, Carl Spitzer wrote:
How can I make a update disk from an existing system to use on another system?. OpenSuSE appears to store all updates under /var/cache/zypp/
I wish to use the downloaded RPMs from the laptop I updated at the library on the desktop at home. At home I have dialup so the usual method would take too long.
I note there is the choice for a update source to be dvd but my attempt to use a burn of the contents of the zypp directory did not work.
How do I make a working update disk??
Just grab the packages (from /var/cache/zypp), dump them in a directory on the target machine and add a plain-dir-repo for that dir on the target machine. E.g., for self-compiled stuff in /usr/src/packages I used createrepo for a while, but it soon got tedious. So I now use this (if I don't push it to my ~ in the OBS): ==== /etc/zypp/repos.d/usr-src-packages.repo ==== [usr-src-packages] name=usr-src-packages enabled=1 autorefresh=1 baseurl=dir:///usr/src/packages/RPMS path=/ type=plaindir priority=85 keeppackages=0 ==== So, if you e.g. make a dir /data/updates and just copy whatever rpms you want in there, they'll get picked up if you use ==== /etc/zypp/repos.d/data-updates.repo ==== [data-updates] name=data-updates enabled=1 autorefresh=1 baseurl=dir:///data/updates path=/ type=plaindir priority=85 keeppackages=0 ==== Adjust the priority, path, name etc. to your liking. Oh, I forgot: you MUST use the usual hierarchy! I.e. /data/updates/x86_64, /data/updates/i586, /data/updates/noarch etc. and put the packages in the right subdirs. But that's it. Just use the same subdirs as where you get the packages from. HTH, -dnh -- Unsubscribing from a mailing list you subscribed to is a basic IQ test for Internet users. -- Author unknown, seen on the PCR-1000 list -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (8)
-
Carl Spitzer
-
Carlos E. R.
-
Carlos E. R.
-
David Haller
-
doiggl@velocitynet.com.au
-
Felix Miata
-
Malcolm
-
Patrick Shanahan