Windows 上的 tlmgr 代理

Windows 上的 tlmgr 代理

我在 Windows 7 上安裝了 TeX Live。計算機位於代理後面,因此 tlmgr 不起作用。我在 tlmgr 文件中找不到任何提及代理的內容。當我嘗試在網路上搜尋時,我找到的所有資訊都假設是 Unix 系統。

如何設定計算機以使用 tlmgr?

答案1

tlmgr使用兩種下載方法之一:首選是LWP(Perl 模組),如果失敗,則會回退到wget.LWP支援代理,因此它應該工作(我無法確認,因為我沒有運行代理)。

您需要的內容已記錄在 LWP 線上說明頁中,但我將其複製到此處:

   http_proxy
   ftp_proxy
   xxx_proxy
   no_proxy
       These environment variables can be set to enable communication
       through a proxy server.  See the description of the "env_proxy"
       method in LWP::UserAgent.

我們已經在實例中設定了啟用代理,因此設定變數(並導出它)LWP應該就足夠了。http_proxy

順便說一句(不是真的),wget評估相同的變量,因此如果LWP方法失敗,也wget應該使用代理。

相關內容