2

Is there any built-in tool (e.g., found on a vanilla ubuntu Docker container, or found in a minimal Ubuntu Server install) that can download a file over HTTP? In other words, without having to execute apt update && apt install [curl|wget].

I thought perl might be able to with File::Fetch but it isn't built-in. (You could create a TCP connection manually, but that's getting involved.)

2
  • 1
    If it's for building on the Docker image, there's ADD. Otherwise, Python might be an option for Ubuntu server.
    – muru
    Sep 14, 2022 at 6:02
  • @muru ADD is a good point, I didn't know it could fetch files.
    – rgov
    Sep 14, 2022 at 14:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.