vscode without distrobox

basically torch.compile doesn't work in distrobox even if I select non-distrobox python and i tested multiple distrobox distros and it always happens, so i need to install vscode outside of distrobox so is it possible to install non distrobox vscode and have it actually see my file system and conda environments unlike the flatpak version
3 Replies
wolfyreload
wolfyreload5d ago
You can layer it with rpm-ostree if you like. I've adjusted the instructions from here https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions Add an entry into "/etc/yum.repos.d/vscode.repo"
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
Then don't install with dnf, use rpm-ostree instead
rpm-ostree install code
rpm-ostree install code
Reboot your machine and you'll have vscode installed as if it was part of the image. The downside is your updates will be a little slower as it will need to download the latest vscode whenever you do updates. So don't go crazy with layering lots of software.
Visual Studio Code on Linux
Get Visual Studio Code up and running on Linux.
Emiliopg_91
Emiliopg_912d ago
why not any AppImage distribution? is the way io work, self updatable and without layering
xiao
xiao2d ago
you can just use tar.gz version downloaded from offcial site

Did you find this page helpful?