openSUSE / zypper

World's most powerful command line package manager
http://en.opensuse.org/Portal:Zypper
Other
405 stars 110 forks source link

Custom user-agent #382

Open hochraldo opened 3 years ago

hochraldo commented 3 years ago

Is it possible to set a custom user agent when zypper connects to repositories. The problem is that in some corporate environment the proxy only allows specific user-agent strings. Would be nice if such a feature does not yet exist if it could be added (as it possible to do with apt)

mlandres commented 3 years ago

@hochraldo If an option in /etc/zypp.conf (e.g. download.user_agent) suits your needs, it can be added quite easily. This would then affect all downloads done by zypper and in YAST,PackageKit at least the repo and package management related ones.

hochraldo commented 3 years ago

Yes, that would totally fit my need. In general there seems to be a need for this (not only for my, our company), as a reference also how apt supports this: https://manpages.debian.org/unstable/apt/apt-transport-http.1.en.html as well.