gorjan
gorjan

Reputation: 5575

Install VSCode as a non-root user on a Linux distribution?

What is the de-facto approach to install VSCode on a Linux distribution e.g., Fedora as a non-root user? In other words, I want to install VSCode without using sudo permissions? Is there a way to git clone the repo and use it?

Any pointers are welcome!

Upvotes: 9

Views: 23973

Answers (2)

Anokhi Shah
Anokhi Shah

Reputation: 336

download this file: https://code.visualstudio.com/sha/download?build=stable&os=linux-x64 extract it and then just start vscode.

To start vscode: go to VSCode-linux-x64 directory and run this command

./code

Upvotes: 18

gorjan
gorjan

Reputation: 5575

It appears that downloading the .rpm file and running:

rpm2cpio the_file_name.rpm | cpio -idv

from the directory where it is downloaded will unpack VSCode's contents. Then, exporting the path to bin/code is sufficient.

Upvotes: 4

Related Questions