【发布时间】:2021-01-12 09:23:10
【问题描述】:
我们正在使用curl,我们想更改为wget。
curl 命令如下:
curl -fsSLO --compressed "https://yarnpkg.com/downloads/v1.22.4/yarn-v$1.22.4.tar.gz" && \ mkdir -p /opt && \
tar -xzf yarn-v1.22.4 -C /opt/
我试过wget:
wget -c "https://yarnpkg.com/downloads/v1.22.4/yarn-v$1.22.4.tar.gz"
但不确定是否在 wget 中完全压缩以获得相同的效果。
【问题讨论】:
-
HTTP request sent, awaiting response... 301 Moved Permanently
标签: linux bash dockerfile wget