1 官方文檔 dotnet 可代替nuget.exe
https://docs.microsoft.com/zh-cn/nuget/install-nuget-client-tools
低版本的nuget 缺少一些參數
2 安裝mono
https://www.mono-project.com/download/stable/#download-lin-centos
有了mono 可以運行nuget.exe 可以把windows上的nuget.exe拷貝上去 直接運行
安裝的版本可能不是最新
下載源碼 https://download.mono-project.com/sources/mono/
解壓 tar -xvf mono-6.6.0.161.tar.xz
進入解壓目錄 執行 ./autogen.sh && make -j8 && make install
3 解決mono 訪問https的問題
https://github.com/duplicati/duplicati/wiki/SSL-TLS-support-in-Mono
sudo cert-sync /etc/pki/tls/certs/ca-bundle.crt
4 nuget 從配置文件增加包源
nuget sources -configfile /projects/nuget/config/NuGet.Config