Hi guys, sorry if this is the wrong list, it seemed the most fitting... How can I prevent one package from being installed from all but one repo? lxc is provided for Leap 42.1 in two repositories, the OSS repo and my personal one.
# zypper se --details --match-exact lxc Loading repository data... Reading installed packages...
S | Name | Type | Version | Arch | Repository ---+------+------------+------------+--------+--------------------------------------------------------------- l | lxc | package | 1.1.2-7.2 | x86_64 | openSUSE_Leap_42_1_OSS | lxc | package | 1.0.8-23.1 | x86_64 | openSUSE_Leap_42_1_ojkastl_buildservice_LXC_Vanilla_stable-1.0 | lxc | srcpackage | 1.0.8-23.1 | noarch | openSUSE_Leap_42_1_ojkastl_buildservice_LXC_Vanilla_stable-1.0
For testing purposes I'd like to add a zypper lock to only get my own lxc package when typing 'zypper in lxc‘. So I added locks for lxc from OSS (and OSS-Updates, if an update should ever be released).
# zypper ll # | Name | Type | Repository --+------+---------+------------------------------- 1 | lxc | package | openSUSE_Leap_42_1_OSS 2 | lxc | package | openSUSE_Leap_42_1_UPDATES_OSS
But zypper in lxc still gives me the wrong one, the one from OSS:
# zypper se --details --match-exact lxc Loading repository data... Reading installed packages...
S | Name | Type | Version | Arch | Repository ---+------+------------+------------+--------+--------------------------------------------------------------- il | lxc | package | 1.1.2-7.2 | x86_64 | openSUSE_Leap_42_1_OSS v | lxc | package | 1.0.8-23.1 | x86_64 | openSUSE_Leap_42_1_ojkastl_buildservice_LXC_Vanilla_stable-1.0 | lxc | srcpackage | 1.0.8-23.1 | noarch | openSUSE_Leap_42_1_ojkastl_buildservice_LXC_Vanilla_stable-1.0
# rpm -qa|grep lxc lxc-1.1.2-7.2.x86_64
How to prevent this? Are zypper's lock not the right tool, only preventing packages from being updated or installed from a different repo? Thanks in advance, Johannes