由于我的网络连接速度慢且嘈杂,我想用它rsync
来安装 texlive 2018。我发布了一个关于在缓慢且嘈杂的网络中离线安装 texlive的问题。
但是,rsync
在我的电脑上失败了。执行此任务的实际命令是什么?下载/镜像 TeX Live 存储库
$ rsync -a --delete http://ctan.math.illinois.edu/systems/texlive/tlnet /home/alhelal/Downloads
ssh: Could not resolve hostname http: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.0]
从您链接的文档中,您应该查看CTAN 镜像列表并找到一个支持 rsync(而不是http)的镜像,并将其插入命令中:
rsync -a --delete rsync://somectan/somepath/systems/texlive/tlnet/ /your/local/dir
所以,我选择rsync://tug.ctan.org/CTAN/
作为镜像使用,你的下载目录作为目标。这给出了:
rsync -a --delete rsync://tug.ctan.org/CTAN/systems/texlive/tlnet/ /home/alhelal/Downloads
AIUI 你在孟加拉国,所以你可能想选择一个更接近的。如果您使用上海(rsync://mirrors.shu.edu.cn/CTAN/),则命令为:
rsync -a --delete rsync://mirrors.shu.edu.cn/CTAN/systems/texlive/tlnet/ /home/alhelal/Downloads
但是我尝试了这个(使用 tug.ctan.org 镜像),但有一个大问题——同步的目录是 3.4 gigs!我怀疑你可以省略存档子目录(它是大部分数据):
rsync -a --delete --exclude=/tlnet/archive rsync://mirrors.shu.edu.cn/CTAN/systems/texlive/tlnet/ /home/alhelal/Downloads
...但这仍然是 114MB。根据这个页面,标准安装运行从 3 到 19MB,具体取决于平台,所以如果您的连接速度很慢,那可能是一个更好的选择。使用rsync
而不是 Web 下载的主要原因是,如果它失败,您可以重新运行它,它会从停止的地方继续运行,因此您可以一遍又一遍地运行它,直到它成功完成。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句