"wget-r"を使用してファイルをインポートできませんでした。

次のコマンドを使用して、Webサーバーからrpmsファイルを再帰的にダウンロードします。

wget -r -np -R "index.html*" http://central-7-0-x86-64.rocksclusters.org/install/rolls/

2分後に私は理解した。

Total wall clock time: 2m 41s
Downloaded: 113 files, 1.2M in 4.7s (252 KB/s)

ただし、フォルダに*.rpmはありません。フォルダ名と一部のXMLファイルのみをインポートします!

wgetすべてのファイルをインポートする方法を教えてください。

ベストアンサー1

以下を使用して、再帰最大深度レベルを増やす必要があります-l

wget -r -np -R "index.html*" -l 10 http://central-7-0-x86-64.rocksclusters.org/install/rolls/

または、-r次のように置き換えます-m

wget -m -np -R "index.html*" -l 10 http://central-7-0-x86-64.rocksclusters.org/install/rolls/

おすすめ記事