[opensuse] zypper - how to build repo from files saved with -k option in /var/cache/zypp/packages?
Listmates, I have saved packages on a central install using zypper ar -k so that I can use the saved packages to update other machines. I have read that this is possible, but I can't find the magic page that tells me how to do it. I have looked at: http://en.opensuse.org/Zypper (features/usage/etc.) http://en.opensuse.org/Libzypp/Metadata http://en.opensuse.org/Libzypp/URI But there isn't a howto on using the saved zypper cache as an install repo (or I haven't found it yet). All the packages are saved as they should be to: 20:41 ecstasy~/linux/scripts/test> l /var/cache/zypp/packages/ total 108 drwxr-xr-x 27 root root 4096 2008-11-12 20:01 ./ drwxr-xr-x 5 root root 4096 2008-10-17 22:04 ../ drwxr-xr-x 3 root root 4096 2008-10-28 03:40 database/ drwxr-xr-x 3 root root 4096 2008-10-22 03:09 edu/ drwxr-xr-x 4 root root 4096 2008-11-12 20:12 kde/ drwxr-xr-x 3 root root 4096 2008-10-28 03:40 kde-backports/ <snip> Is there a build repo command that I could run on /var/cache/zypp/packages/ that would let me turn around and add the cache directory as a repo to update other machines? What is the magic? -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 12 November 2008 08:49:35 pm David C. Rankin wrote:
... Is there a build repo command that I could run on /var/cache/zypp/packages/ that would let me turn around and add the cache directory as a repo to update other machines? What is the magic?
zypper should accept directory as installation source, so NFS share should be fine without any adjustment, but there is: /usr/bin/create_update_source.sh -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed November 12 2008 9:49:35 pm David C. Rankin wrote:
Listmates,
I have saved packages on a central install using zypper ar -k so that I can use the saved packages to update other machines. I have read that this is possible, but I can't find the magic page that tells me how to do it. I have looked at:
http://en.opensuse.org/Zypper (features/usage/etc.)
http://en.opensuse.org/Libzypp/Metadata http://en.opensuse.org/Libzypp/URI
But there isn't a howto on using the saved zypper cache as an install repo (or I haven't found it yet). All the packages are saved as they should be to:
Is there a build repo command that I could run on /var/cache/zypp/packages/ that would let me turn around and add the cache directory as a repo to update other machines? What is the magic?
Try this one.... ricreig@athelon:~> man createrepo createrepo(8) createrepo(8) NAME createrepo - Create repomd (xml-rpm-metadata) repository SYNOPSIS createrepo [options] <directory> DESCRIPTION createrepo is a program that creates a repomd (xml-based rpm metadata) repository from a set of rpms. Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Richard wrote:
On Wed November 12 2008 9:49:35 pm David C. Rankin wrote:
Listmates,
I have saved packages on a central install using zypper ar -k so that I can use the saved packages to update other machines. I have read that this is possible, but I can't find the magic page that tells me how to do it. I have looked at:
http://en.opensuse.org/Zypper (features/usage/etc.)
http://en.opensuse.org/Libzypp/Metadata http://en.opensuse.org/Libzypp/URI
But there isn't a howto on using the saved zypper cache as an install repo (or I haven't found it yet). All the packages are saved as they should be to:
Is there a build repo command that I could run on /var/cache/zypp/packages/ that would let me turn around and add the cache directory as a repo to update other machines? What is the magic?
Try this one....
ricreig@athelon:~> man createrepo createrepo(8) createrepo(8)
NAME createrepo - Create repomd (xml-rpm-metadata) repository
SYNOPSIS createrepo [options] <directory>
DESCRIPTION createrepo is a program that creates a repomd (xml-based rpm metadata) repository from a set of rpms.
Richard
Richard That's it! I remember having seen the name before during an install, but I couldn't remember the context of where in the heck I saw it. Thank you! -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu November 13 2008 1:21:44 am David C. Rankin wrote:
Richard wrote:
On Wed November 12 2008 9:49:35 pm David C. Rankin wrote:
Is there a build repo command that I could run on /var/cache/zypp/packages/ that would let me turn around and add the cache directory as a repo to update other machines? What is the magic?
NAME createrepo - Create repomd (xml-rpm-metadata) repository
That's it! I remember having seen the name before during an install, but I couldn't remember the context of where in the heck I saw it. Thank you!
David, you give so much good advice on this forum, I am estatic that I was able to provide a miniscule amount of help back to someone like yourself that does so much for so many. Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Richard wrote:
On Thu November 13 2008 1:21:44 am David C. Rankin wrote:
Richard wrote:
On Wed November 12 2008 9:49:35 pm David C. Rankin wrote:
Is there a build repo command that I could run on /var/cache/zypp/packages/ that would let me turn around and add the cache directory as a repo to update other machines? What is the magic?
NAME createrepo - Create repomd (xml-rpm-metadata) repository
That's it! I remember having seen the name before during an install, but I couldn't remember the context of where in the heck I saw it. Thank you!
David, you give so much good advice on this forum, I am estatic that I was able to provide a miniscule amount of help back to someone like yourself that does so much for so many.
Richard
Richard, Thank you for the kind words. However, this is definitely a two-way street. I have been given more from this list than I can ever hope to give back. Each time I am responding, I have to stop and think, now how would I do x,y or z, and most of the time, I have to look it up if I don't have it squirreled away somewhere. I have learned more great new stuff by trying to answer questions than I would have ever had the opportunity to do otherwise. It was only a few short years ago that I was starting all my posts with "newbie -- needs help with ...." Thanks -- David C. Rankin, J.D.,P.E. | Rankin Law Firm, PLLC | 510 Ochiltree Street | Countdown for openSuSE 11.1 Nacogdoches, Texas 75961 | http://counter.opensuse.org/11.1/small Telephone: (936) 715-9333 | Facsimile: (936) 715-9339 | www.rankinlawfirm.com | -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
David C. Rankin
-
Rajko M.
-
Richard