1.Prerequisites
-
Git client
Debian/Ubuntu:# apt-get install git -
Go - version 1.11.x
go的安装比较麻烦,https://blog.csdn.net/kwame211/article/details/79011360 -
(macOS) Xcode must be installed
-
Docker - 17.06.2-ce or later
Ubuntu:sudo apt-get install -y docker.io
所需环境 -
Docker Compose - 1.14.0 or later
Ubuntu:apt install docker-compose -
Pip
Ubuntu:apt install python-pip
pip install --upgrade pip -
(macOS) you may need to install gnutar, as macOS comes with bsdtar as the default, but the build uses some gnutar flags. You can use Homebrew to install it as follows:
brew install gnu-tar --with-default-names
- (macOS) Libtool. You can use Homebrew to install it as follows:
brew install libtool
- (only if using Vagrant) - Vagrant - 1.9 or later
- (only if using Vagrant) - VirtualBox - 5.0 or later
- BIOS Enabled Virtualization - Varies based on hardware
- Note: The BIOS Enabled Virtualization may be within the CPU or Security settings of the BIOS
pip
pip install --upgrade pip
2.其它Linux命令
2.1 全部更新
1.在桌面上右键“打开终端”.
2.更新资源update.sudo apt-get update
3.对软件进行升级.sudo apt-get dist-upgrade
4.接着安装系统更新,如果不希望升级系统版本,完成这步就可以了.sudo apt-get dist-upgrade
2.2 安装本地文件
sudo dpkg -i google-chrome-stable_current_amd64.deb
2.3
dist-upgrade 会识别出当依赖关系改变的情形并作出处理,而upgrade对此情形不处理
sudo apt-get install update:
更新软件源,下载最新的软件列表,从服务器的软件源下载最新的软件包列表文件,更新本地软件包缓存信息(包含软件名,版本,校验值,依赖关系等)。
sudo apt-get install upgrade:
如果在上一步update操作中,发现本地已经安装的软件比下载的软件列表中软件版本低,那么就可以使用upgrade命令来更新低版本的软件
sudo apt-get -f install 是修复损坏的软件包,尝试卸载出错的包,重新安装正确版本的












网友评论