两行命令实现 ubuntu 上自动更新 Vscode

看到一堆繁杂的方式,真是头疼,其实很简单

如果你的vscode 已经通过 .deb 安装过了。只需要输入两行代码即可更新已经安装的vscode

sudo apt-get update
sudo apt-get install code

运行结果如下

(base) zdx@Tuna:~$ sudo apt-get install code
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  code
1 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.
Need to get 71.9 MB of archives.
After this operation, 8,216 kB of additional disk space will be used.
Get:1 http://packages.microsoft.com/repos/vscode stable/main amd64 code amd64 1.54.1-1614898113 [71.9 MB]
Fetched 71.9 MB in 20s (3,509 kB/s)                                            
(Reading database ... 285834 files and directories currently installed.)
Preparing to unpack .../code_1.54.1-1614898113_amd64.deb ...
Unpacking code (1.54.1-1614898113) over (1.52.1-1608136922) ...
Setting up code (1.54.1-1614898113) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值