How-To /etc/zypp/vendors.d; How to add repo http://packman.links2linux.de

My packman mirror is ftp.halifax.rwth-aachen.de, but zypper will ask permission to change vendors, if the.package is not in the mirror. You can automate the process by adding a file to the vendor.d directory. The exact format of the file is not documented in the zypper man page. Through trial and error, I got this to work:

[main]

vendors = packman,openSUSE,http://packman.links2linux.de


Maybe I am not using a very active mirror. I probably should change mirrors and yet I don’t really need the mirror with this hack. But if anyone knows that my mirror is not good anymore, please let me know. I am downloading directly from links2linux more often than I expected to.

[edit]
I just realized that I might be getting from the main repo exclusively after the initial install of my system because the main repo gets the updates before the mirrors.
[edit]

Yes, you can. Or you can enable vendor change in general.
But you probably wouldn’t want to, as the standard packages are crippled.

The exact format of the file is not documented in the zypper man page.

The format is documented in the config file /etc/zypp/zypp.conf:

#### Defining directory which contains vendor description files.
##
## One file in this directory reflects a group of equivalent vendors. e.G.:
## (filename is "nvidia" but could be any other name):
## ------------------------- file contains begin -----------------------
## [main]
##
## vendors = nvidia,suse,opensuse
##
## ------------------------- file contains end -----------------------
## Libzypp makes an string comparision (like strncmp, case-insensitive)
## whereas the beginning of the strings are compared only.
## e.G. vendor "opensuse11.0" is compatible to "openSuSE".
##
## Valid values: A directory
## Default value: {configdir}/vendors.d
##
# vendordir = /etc/zypp/vendors.d



I just realized that I might be getting from the main repo exclusively after the initial install of my system because the main repo gets the updates before the mirrors.

What do you mean with “main repo”?
http://pmbs.links2linux.de:82/?
You should NOT use that. That’s the build server, it needs all power it has for building packages. It’s absolutely not intended for public use as repo.

Use a mirror, probably a different one as you are using now.
A list is available here:

I have no idea about ftp.halifax.rwth-aachen.de, as I never used that one.
I had good experience with packman.inode.at over years, but it’s down since over a week ago. Meanwhile you just get redirected to the Czech mirror (which hasn’t given me problems either yet).

But maybe you should tell which packages exactly are “missing” on that mirror? Maybe it’s intended?

PS: Why are you posting this in the How To/FAQ Forums?
This is rather a question, not a How to, no?