[zypp-devel] use case question: repository setup rpm.
I have some questions regarding repository setup for zypp. I know the "zypper service-add ..." stuff, and I currently have the Dell public repositories bootstrap script use this in the script. I was looking to improve this, though. For yum setup, the setup is simply this: drop a "dell.repo" file in /etc/yum.repos.d/. This is quite nice for the simple reason that it is something that RPM manages to do exceedingly well. I have a "dell-unsupported-repository-1-1.noarch.rpm" that I use for this purpose. The other nice thing about this is that I can very easily manage the transition from config to config. For example, if I make a change to the repository layout, I can release updated repository RPMs with the new configs. As I normally will make the old and new layouts compatible, I can simply wait a period of time before removing the backwards compatibility (either symlinks or http redirects, etc). This makes things nice and easy to manage from my side. For zypper, I dont see a nice way to update the client's configs easily via RPM. I tried to do the "zypper service-add ..." inside the RPM %post, but all I managed to do was hang zypper when the RPM was updated as part of a zypper upgrade. What is a good way to handle this situation? Is there something that can be added to the next version to address this? Note: All my testing was carried on on SLES10 and SLES10 SP1. Thanks, Michael Brown Maintainer, Dell unofficial yum repos Dell, Inc -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Friday 29 June 2007 11:55:11 pm Michael E Brown wrote:
What is a good way to handle this situation? Is there something that can be added to the next version to address this?
this is exactly what the development version of zypp/zypper does: duncan@piscolita:/space/build/zypper> sudo src/zypper sl # | Enabled | Refresh | Type | Name | URI --+---------+---------+--------+----------------------+----------------------------------------------------------------------- 1 | Yes | No | rpm-md | devel:tools:scm | http://software.opensuse.org/download/devel:/tools:/scm/openSUSE_10.2/ 1 | Yes | No | rpm-md | openSUSE_10.2_NonOSS | http://download.opensuse.org/distribution/10.2/repo/non-oss/suse 1 | Yes | No | rpm-md | openSUSE_10.2 | http://download.opensuse.org/distribution/10.2/repo/oss/suse 1 | Yes | No | rpm-md | KDE4_10.2 | http://software.opensuse.org/download/KDE:/KDE4/openSUSE_10.2 1 | Yes | No | rpm-md | homedmacvicar | http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/ duncan@piscolita:/space/build/zypper> ls /etc/zypp/repos.d/ devel:tools:scm.repo home:dmacvicar.repo KDE4_10.2.repo openSUSE_10.2_NonOSS.repo openSUSE_10.2.repo -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Sun, Jul 01, 2007 at 03:34:45PM +0200, Duncan Mac-Vicar P. wrote:
On Friday 29 June 2007 11:55:11 pm Michael E Brown wrote:
What is a good way to handle this situation? Is there something that can be added to the next version to address this?
this is exactly what the development version of zypp/zypper does:
duncan@piscolita:/space/build/zypper> sudo src/zypper sl # | Enabled | Refresh | Type | Name | URI --+---------+---------+--------+----------------------+----------------------------------------------------------------------- 1 | Yes | No | rpm-md | devel:tools:scm | http://software.opensuse.org/download/devel:/tools:/scm/openSUSE_10.2/ 1 | Yes | No | rpm-md | openSUSE_10.2_NonOSS | http://download.opensuse.org/distribution/10.2/repo/non-oss/suse 1 | Yes | No | rpm-md | openSUSE_10.2 | http://download.opensuse.org/distribution/10.2/repo/oss/suse 1 | Yes | No | rpm-md | KDE4_10.2 | http://software.opensuse.org/download/KDE:/KDE4/openSUSE_10.2 1 | Yes | No | rpm-md | homedmacvicar | http://software.opensuse.org/download/home:/dmacvicar/openSUSE_10.2/
duncan@piscolita:/space/build/zypper> ls /etc/zypp/repos.d/ devel:tools:scm.repo home:dmacvicar.repo KDE4_10.2.repo openSUSE_10.2_NonOSS.repo openSUSE_10.2.repo
Ok, very nice. Thanks for the info. I suppose I'll have to download the latest stuff and try it out. -- Michael -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (2)
-
Duncan Mac-Vicar P.
-
Michael E Brown