Adding repository 'Updates' -------------------------------------------------------------------------------------------------------------------------------\]
Download (curl) error for 'https://download.opensuse.org/update/tumbleweed/repodata/repomd.xml':
Error code: Bad URL
Error message: Protocol "http" not supported or disabled in libcurl
Abort, retry, ignore? [a/r/i/...? shows all options] (a):
Somehow this does not support HTTPS, it works with the HTTP protocol. However, not using the --root flag works fine. So zypper itself seems to support it.
$ curl https://download.opensuse.org/repositories/KDE:Extra/openSUSE_Leap_42.3/KDE:Extra.repo
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://download.opensuse.org/repositories/KDE:/Extra/
openSUSE_Leap_42.3/KDE:Extra.repo">here</a>.</p>
<hr>
<address>Apache/2.2.34 (Linux/SUSE) Server at download.opensuse.org Port 443</address>
</body></html>
In the zypper scripts I’ve written,
I’ve likely avoided this by simply invoking “su” or “sudo” instead.
In fact this practice more or less motivates me to properly modularize my code into indivdual sub-scripts, each running with a specific security context, making it more unwieldy to write spaghetti code (which would be easier to do if all I had to do was invoke a --root flag in a command).