Setup repo for VSCode in pre and install through recipe
This commit is contained in:
@@ -60,7 +60,7 @@ rpm:
|
|||||||
# Example:
|
# Example:
|
||||||
# - tilix
|
# - tilix
|
||||||
- brave-browser
|
- brave-browser
|
||||||
- dnf
|
- code
|
||||||
# These RPMs will be removed from the system image. This step happens during
|
# These RPMs will be removed from the system image. This step happens during
|
||||||
# image build, BEFORE installing custom RPMs (from the "rpm.install" category).
|
# image build, BEFORE installing custom RPMs (from the "rpm.install" category).
|
||||||
remove:
|
remove:
|
||||||
|
|||||||
@@ -4,5 +4,3 @@ set -oue pipefail
|
|||||||
|
|
||||||
rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
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'
|
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
|
|
||||||
Reference in New Issue
Block a user