有没有一种快速的方法来下载存储库中的目录?

有没有一种快速的方法来下载存储库中的目录?

我实际上是在一个视窗机器,尝试检索centOS 5.4从他们的金库中。我没有解压软件,所以我不想使用iso。我想知道是否有一种简单的方法来获取所有内容 浏览器内的目录。

答案1

您可以使用wget用于窗户)(或通过吉文)递归下载网站,

$ wget -c \
     --recursive \
     --no-clobber \
     --page-requisites \
     --html-extension \
     --convert-links \
     --restrict-file-names=windows \
     --domains vault.centos.org \
     --no-parent \
     http://vault.centos.org/5.4/os/i386/

选项有:

--recursive: download the entire Web site.
--domains vault.centos.org: don't follow links outside vault.centos.org.
--no-parent: don't follow links outside the directory tutorials/html/.
--page-requisites: get all the elements that compose the page (images, CSS and so on).
--html-extension: save files with the .html extension.
--convert-links: convert links so that they work locally, off-line.
--restrict-file-names=windows: modify filenames so that they will work in Windows as well.
--no-clobber: don't overwrite any existing files (used in case the download is interrupted and resumed).

相关内容