Mailinglist Archive: zypp-devel (66 mails)

< Previous Next >
[zypp-devel] zypper: Excluding packages from a repo
  • From: Peter Poeml <poeml@xxxxxxx>
  • Date: Mon, 16 Feb 2009 21:15:05 +0100
  • Message-id: <20090216201505.GA14919@xxxxxxx>
Hi,

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.

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.

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 >
Follow Ups