Making dnf install ssh:// work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# dnf install ssh://foo/tmp/bar.rpm
Last metadata expiration check: 0:00:41 ago on Sun 16 Jan 2022 09:21:19 GMT.
[MIRROR] bar.rpm: Curl error (1): Unsupported protocol for ssh://foo/tmp/bar.rpm [Protocol "ssh" not supported or disabled in libcurl]

I'm trying to work out if it's possible to make this work by adjusting
the dnf configuration.  I'm going to say _no_ because the list of
allowed protocols is hard-coded in a couple of places:

https://github.com/rpm-software-management/dnf/blob/b831cbd50bb04ace86a90c6e7202e271e7234e69/dnf/package.py#L292
https://github.com/rpm-software-management/dnf/blob/b831cbd50bb04ace86a90c6e7202e271e7234e69/dnf/repo.py#L635

However the error message seems to indicate that the restriction
is being enforced by curl itself using this mechanism:

https://curl.se/libcurl/c/CURLOPT_PROTOCOLS.html

I cannot see where dnf calls curlopt at all - perhaps it's in a
different library?

Anyway I think it'd be nice to support ssh, and should be safe.  (ftp
is allowed at the moment, so presumably security isn't high on the
list of current concerns).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux