Mailinglist Archive: zypp-devel (66 mails)
| < Previous | Next > |
Re: [zypp-devel] zypper: Excluding packages from a repo
- From: Peter Poeml <poeml@xxxxxxx>
- Date: Tue, 17 Feb 2009 13:23:54 +0100
- Message-id: <20090217122354.GQ14919@xxxxxxx>
Hi Jano,
On Tue, Feb 17, 2009 at 12:41:26PM +0100, Jan Kupec wrote:
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).
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. :-(
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!).
Shouldn't we rather add FATE or openFATE requests for these features?
These are important features in my view on the way to make zypper
usable for admins.
(Yes, it is getting there :-) I am currently running yum and zypper
aside on some machines, closely comparing and validating what's
happening. And I can say, there are quite some things that work
pleasantly already. Very happy that I can finally keep old kernels, for
instance.)
Thanks,
Peter
--
Contact: admin@xxxxxxxxxxxx (a.k.a. ftpadmin@xxxxxxxx)
#opensuse-mirrors on freenode.net
Info: http://en.opensuse.org/Mirror_Infrastructure
SUSE LINUX Products GmbH
Research & Development
On Tue, Feb 17, 2009 at 12:41:26PM +0100, Jan Kupec wrote:
this may be obvious, but I didn't find anything when I searched the
zypper man page for "exclude" or "ignore".
How do I exclude a certain package from a repo that I am subscribed to
so that it doesn't update a package that I have on my system?
I imported the following repo file into zypper, which works with yum:
-# cat Application:Geo.repo
[Application_Geo]
name=Applications related to the earth (GIS, Mapping, geodesy, GPS)
(openSUSE_11.0)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/Application:/Geo/openSUSE_11.0/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/Application:/Geo/openSUSE_11.0/repodata/repomd.xml.key
enabled=1
exclude=autoconf <----------
The same exclude line put into the .repo file in /etc/zypp/repos.d
doesn't have any effect.
Libzypp does not support this AFAIK. To avoid
installing/upgrading/removing of some package, lock it:
$ 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. :-(
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!).
On a related note, I have also looked for something like --exclude on
the commandline, but to no avail. I am aware of the way to give package
names as arguments to zypper, with and without wildcards, and that works
fine for me, but sometimes an exclude on the commandline is useful as
well.
Hmm.. right, there's nothing like that available in zypper. Once you use
a wildcard, it will consider all matches. Yeah, i guess it might be
useful to be able to exlcude some of the matches. Could you please file
an enhancement request in bugzilla? (I'll probably close it as wontfix
:O) but don't worry, it'll be still alive in
http://en.opensuse.org/Zypper/Bugs_For_Adoption ... which reminds me i
should advertise the page a bit :O)
Shouldn't we rather add FATE or openFATE requests for these features?
These are important features in my view on the way to make zypper
usable for admins.
(Yes, it is getting there :-) I am currently running yum and zypper
aside on some machines, closely comparing and validating what's
happening. And I can say, there are quite some things that work
pleasantly already. Very happy that I can finally keep old kernels, for
instance.)
Thanks,
Peter
--
Contact: admin@xxxxxxxxxxxx (a.k.a. ftpadmin@xxxxxxxx)
#opensuse-mirrors on freenode.net
Info: http://en.opensuse.org/Mirror_Infrastructure
SUSE LINUX Products GmbH
Research & Development
| < Previous | Next > |