How to update Visual Studio Code in Ubuntu 20.04 LTS without downloading the full setup?

5,047

After installing, you should have the following file: /etc/apt/sources.list.d/vscode.list with this content:

deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main

This will allow you to update it with apt

sudo apt update
sudo apt upgrade
Share:
5,047

Related videos on Youtube

NoobCodeTyper
Author by

NoobCodeTyper

Just a normal Indian guy.

Updated on September 18, 2022

Comments

  • NoobCodeTyper
    NoobCodeTyper almost 2 years

    I shifted to Ubuntu 20.04 LTS 3 weeks ago from Windows 10. I use Visual Studio Code and whenever I get an update in Update it shows in Settings > Download Update(1). When I click on download update, firefox opens up and then I have to download Visual Studio Code Setup from there and then I have to install it. This is what I have to do everytime. In Windows, I just had to click the Download Update button then the update would automatically be downloaded.

    Please tell me if there is any way to update Visual Studio Code easily like using termianl?

    Thanks in Advance

    PS: Sorry for my bad English as it's not my native language, I may have committed some grammatical mistakes.

    • Admin
      Admin over 3 years
      Did you install it from a download or the PPA?
    • Admin
      Admin over 3 years
      I installed it using the downloaded the .deb file from the official website and then installed it using 'sudo dpkg -i'
    • Admin
      Admin over 3 years
      Does this answer your question? How can I update Visual Studio Code on Ubuntu?
  • Muhammad Tariq
    Muhammad Tariq over 3 years
    sudo apt upgrade will upgrade the Ubuntu OS as well? Not just VS Code. Isn't it ? The question is about how to upgrade VS Code only.