[zypp-devel] using other config with zypper
Thank you for your Help I noticed this Parameter as well, but it does not work for me: # zypper lr No repositories defined. Use the 'zypper addrepo' command to add one or more repositories. # zypper-own --config /opt/zypper-own/etc/zypp/zypp.conf ar /media/SLE-11-SP1-SDK-DVD-x86_64.02.001/ sles11sdk Adding repository 'sles11sdk' [done] Repository 'sles11sdk' successfully added Enabled: Yes Autorefresh: No URI: dir:///media/SLE-11-SP1-SDK-DVD-x86_64.02.001 # zypper lr # | Alias | Name | Enabled | Refresh --+-----------+-----------+---------+-------- 1 | sles11sdk | sles11sdk | Yes | No Thanks again Manuel On 11/10/2011 10:52 AM, Martin Vidner wrote:
On Thu, Nov 10, 2011 at 10:26:04AM +0100, Rieke, Manuel wrote:
Hi mvidner,
on http://en.opensuse.org/openSUSE:Zypper_development i've read, that you are one of the zypper developer.
Hi Manuel,
it is better to ask the zypp mailing list (in Cc).
Perhaps you could help me with one problem: I want to use 2 versions of Zypper on one machine, because I modified the second version. If there are problems with my version, i want to use the official one (SLES 11 SP1, zypper 1.3.7) without reinstall it.
So I build my own rpm with a different name of zypper. The Installation works perfectly and it runs as it shoud.
The problem are the same configfiles of both versions. Is it possible to use an other configuration directory for my version?
zypper --config /usr/local/etc/myspecialzypper.conf command --options args
Please consider reading the fine manual: man zypper, searching for "config" reveals this as the second hit.
Thanks for your help
Regards
Manuel Rieke
-- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
On Thursday 10 November 2011 11:20:10 Rieke, Manuel wrote:
Thank you for your Help I noticed this Parameter as well, but it does not work for me:
# zypper lr No repositories defined. .. # zypper-own --config /opt/zypper-own/etc/zypp/zypp.conf ar ... # zypper lr # | Alias | Name | Enabled | Refresh --+-----------+-----------+---------+-------- 1 | sles11sdk | sles11sdk | Yes | No
There are 2 configs: - /etc/zypp/zypper.conf (for zypper) - /etc/zypp/zypp.conf (for libzypp) The zypper manpage is a bit missleading, you actually can't overwrite libzypp options in zypper.conf. Location of repositories, metadata, etc. are properties of the software management as a whole. They apply to zypper as well as PackageKit or YaST, thus they are controlled by libzypp (zypp.conf), which is the common library those applications use. There is no way to use a different zypp.conf. .. unless you read through the code and find the name of the ZYPP_CONF environment variable we use to redirect libzypp to a different config file for testing. Using two different zypp.confs for maintaining the same system is neither advisable nor supported. Be sure you have backups at hand. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
participants (2)
-
Michael Andres
-
Rieke, Manuel