Setup repo for VSCode in pre and install through recipe

This commit is contained in:
gmpinder
2023-06-03 17:08:04 -04:00
parent 2713de82d7
commit ab26f257c5
3 changed files with 1 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ rpm:
# Example:
# - tilix
- brave-browser
- dnf
- code
# These RPMs will be removed from the system image. This step happens during
# image build, BEFORE installing custom RPMs (from the "rpm.install" category).
remove:

View File

@@ -4,5 +4,3 @@ set -oue pipefail
rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
dnf check-update
dnf install -y code