Instalar visual studio code linux6/26/2023 ![]() Install the code package: sudo apt install code -y Update the package list: sudo apt update -y Upload the repository key to the system: wget -qO- | gpg -dearmor > sudo install -D -o root -g root -m 644 /etc/apt/keyrings/Ĭreate the repository file: sudo sh -c 'echo "deb stable main" > /etc/apt//vscode.list'įile created under /etc/apt// ls /etc/apt//ĭelete the. You can also do this by first installing the repository and the key, then installing a package.įirst install the package dependencies: sudo apt install wget gpg -y deb) package, the key and the repository file were automatically installed by the system. When we installed the Visual Studio Code debian (. Method-3: Install VSC Package from the Repository ![]() # You may comment out this entry, but any other modifications may be lost.ĭeb stable mainĪfter this step, you can use Visual Studio Code by typing code from the menu.ĪLSO READ: How to generate cloud-init user-data file for Ubuntu 20.04 # THIS FILE IS AUTOMATICALLY CONFIGURED # Repository file contents: cat /etc/apt//vscode.list It will now also make updates from this repository. The package was installed and also the vscode.list file was created under the /etc/apt/ directory. It will install the missing dependencies. Hint: If it gives a package dependency error during installation, run the following command. Processing triggers for shared-mime-info (2.1-2). Processing triggers for desktop-file-utils (0.26-1ubuntu3). ![]() ![]() Processing triggers for gnome-menus (3.36.0-1ubuntu3). Processing triggers for mailcap (3.70+nmu1ubuntu1). 198274 files and directories currently installed.) Selecting previously unselected package code. Then the downloaded package is installed with the following command: sudo dpkg -i code_1.72.2-1665614327_b In our example, the file was downloaded to /home/foc/Downloads: ls deb Package Manuallyĭownload the debian package for Visual Studio Code. Installation completed successfully without using terminal. ![]()
0 Comments
Leave a Reply. |