Install or Upgrade or Uninstall VSCODE in Ubuntu 20.04
- Bilal Malik
- May 13, 2021
- 1 min read
We can install the Vscode in the below two ways.
Installation Method 1:
Run the below command to install the VScode.
sudo snap install --classic code
This method will upgrade Vscode automatically when it finds a new version.
Installation Method 2:
We need to download the .deb file for the below link.
Then go to the downloaded directory, then run the below command.
sudo dpkg -i code_1.56.1-1620296372_amd64.deb
After successfully run the above command, we can see the Vscode in the app search.

We need to follow the same steps for the upgrade as well.
Uninstall Vscode
We need to run the below command to uninstall the Vscode.
$ sudo dpkg --purge code
Terminal Output:
(Reading database ... 207467 files and directories currently installed.)
Removing code (1.56.1-1620296372) ...
Purging configuration files for code (1.56.1-1620296372) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
I hope it helps. Thanks.
Comments