On Fri 18 Mar 2016 09:36:32 PM CDT, Johannes Kastl wrote:
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
Hi Not the right list, but you need to 'switch' to the package you want, not lock.... zypper in --from <your repo> <package> -- Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890) SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.53-60.30-default up 9:00, 5 users, load average: 0.64, 1.24, 0.84 CPU AMD A4-5150M @ 2.70GHz | GPU Radeon HD 8350G -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org