How can I install the latest VS Code updates using the terminal?

VS Code shows an update available. When I click on Download Update, it opens the VS Code website. At this point, updating seems like installing the latest version.

Is there a way to just get the updates using the terminal without reinstalling the whole thing?

In any case

sudo pacman -Syu

If that doesn’t update - you have used a custom package build and you need to rebuild that package

pamac build your-vs-code-pkgname

For those and other reasons I’d recommend installing sudo pacman -S code (code - OSS - open source variant) which is in the official repository. If you need to access packages from Microsoft marketplace (which most do) there is an easy fix which works for most things that you may need.
Here is one link fast (AUR (en) - code-marketplace), something along those lines (it’s basically just a hook that ‘adjusts’ the marketplace on each code update, it can be done manually as well), so you pretty much can have a normal marketplace. At least you should research about it.

If you install through AUR, then just update like any AUR package (i.e.: no different from installing):

$ yay -S visual-studio-code-bin

replace yay and following arguments depending on your chosen AUR helper.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.