Problem
VSCode is pre-installed in Aurora dev edition. I, however, may have reasons not to like to use (or having installled, for that matter), the official Microsoft Visual Studio Code. E.g.
- because it is proprietary and there exists a non-proprietary alternative aka VSCodium
- because I may want to have my editor sandboxed (see more below)
I can easily install install VSCodium from flathub to solve this[1], but the question is how do I uninstall thge pre-installed VSCode then, given I don’t need it anymore?
Tried research
I searched the repo and some stuff turned up:
- Apparently it is included with a repository directly from Microsoft:
aurora/system_files/dx/etc/yum.repos.d/vscode.repo at 0e15e35d162cfcc6271de89f4771dc2c333c2116 · ublue-os/aurora · GitHub - THere is a script
aurora-dx-user-vscodethat configures some stuff for a better out-of-the-box experience
BTW I have no idea what where this service is (aurora-dx-user-vscode.service) and I also could not find it nor the binary of it (systemctl [--user] status aurora-dx-user-vscode.service and /usr/libexec/aurora-dx-user-vscode yield no results). Or does it auto-delete itself?
On the live system it seems to be installed without sandboxing on the host system:
$ code --version
1.104.3
385651c938df8a906869babee516bffd0ddb9829
x64
This may, as indicated, not be what I want?`
Tried solutions
Some naive ways fail:
$ rpm-ostree remove code
error: Package/capability 'code' is not currently requested
$ rpm-ostree remove vscode
zsh: correct 'vscode' to '.vscode' [nyae]? n
error: Package/capability 'vscode' is not currently requested
$ rpm-ostree remove visualstudiocode
error: Package/capability 'visualstudiocode' is not currently requested
$ rpm-ostree remove visual-studio-code
error: Package/capability 'visual-studio-code' is not currently requested
I also really could not find out how it is actually installed and also checking the official VSCode installation guide only yields sudo dnf install code, which also just shows code as the package name, which I already tried uninstalling.
Question
So how can I uninstall the pre-installed VSCode (to switch to Codium/flatpaked, Codium e.g.)?
Actually to have a stronger sandbox you can also revoke the flatpak-spwan permission or the big filesystem option, but that is a different topic ↩︎