-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Poeml wrote:
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/rep... 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 will add the lock to /etc/zypp/locks, see also 'man locks'
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) - -- cheers, jano Ján Kupec YaST team - ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 - ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz - ---------------------------------------------------------(EOF)--- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkmaomYACgkQgEhGpmN+6QHnUQCghBJVJKej0dpK5BcBwSRtRyIM iMUAnj1rfGRZyCyM4hw8jmK7DaJwIy59 =l1Ye -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org