Mailinglist Archive: zypp-devel (66 mails)

< Previous Next >
Re: [zypp-devel] zypper: Excluding packages from a repo
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Tue, 17 Feb 2009 15:06:59 +0100
  • Message-id: <200902171507.00733.ma@xxxxxxx>
On Tuesday 17 February 2009 13:23:54 Peter Poeml wrote:

$ zypper addlock foo

This sounds as if updates of the package are totally blocked then. Is
that the case? I don't want to avoid installing/upgrading/removing of
the package. It would be wrong to block regular updates to the package
(which would concern me).

this will add the lock to /etc/zypp/locks, see also 'man locks'

I also looked into that man page yesterday, because it is linked from
the zypper man page, but I have to admit that I don't understand a word.
Too abstract for me. :-(

Basically the locks file contains a set of serialized queries.
All items the query matches get locked.


On a related note, I miss a feature similar to "exclude" which comes
in very handy. Practically the opposite of "exclude", and I use it
rather often. It's called includepkgs in yum.conf speak (see
http://linux.die.net/man/5/yum.conf) and its purpose is that it lets me
ignore all but (a) certain package(s) from a repository.
For instance, when I want to get (and update) some tool from
network:utilities, but I don't want a pcap library that happens to be
there (no thanks!).

For this we had to enhance the queries to support a "NOT".

-----lock-----
repo: network:utilities
solvable_name: NOT some_tool

--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >