[opensuse-packaging] Preventing a package from being installed from all but one repo
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
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
On Fri, Mar 18, 2016 at 9:36 PM, Johannes Kastl <mail@ojkastl.de> 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?
I would either use... "zypper in --from openSUSE_Leap_42_1_ojkastl[...]" ...or add a "priority" line <100 for your repo (http://doc.opensuse.org/documentation/leap/reference/single-html/book.opensu...) -- Kind regards Christopher 'm4z' Holm / 686f6c6d "We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children smart." --H. L. Mencken -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
686f6c6d
-
Johannes Kastl
-
Malcolm