Two-line command to automatically update Vscode on ubuntu

It’s really a headache to see a bunch of complicated ways, but it’s actually very simple

If your vscode has been installed via .deb. Only need to enter two lines of code to update the installed vscode

sudo apt-get update
sudo apt-get install code

The results are as follows

(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) ...

Guess you like

Origin blog.csdn.net/zdx1996/article/details/114532399