获取Go中所有已安装软件包的列表 [英] Get a list of all installed packages in Go

查看:87
本文介绍了获取Go中所有已安装软件包的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过goinstall列出所有已安装的软件包?我需要将一台计算机上安装的所有软件包重新安装到另一台计算机上.

How can I list all installed packages via goinstall? I need this to reinstall all packages installed on one computer to a different computer.

推荐答案

$ GOROOT/goinstall.log下有一个列表如果您想将所有软件包安装在另一台计算机上,只需将文件复制到运行

There is a list under $GOROOT/goinstall.log If you want to install all the packages on an different computer just copy the file across and run,

goinstall -a

goinstall将读取此文件并安装其中列出的所有软件包.

and goinstall will read this file and install all packages listed in it.

这篇关于获取Go中所有已安装软件包的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆