### List Installed and Available .NET Components Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/dotnet-setup.md Use this command to view all .NET runtimes and SDKs that are currently installed or available for installation on your system. It helps in understanding the current .NET environment. ```bash dotnet-installer list ``` -------------------------------- ### Install .NET using Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/dotnet-setup.md Use this command to install the .NET snap package. The snap will automatically install the latest LTS SDK if no .NET component is already installed when a dotnet command is first run. ```text sudo snap install --classic dotnet ``` -------------------------------- ### Install Eclipse IDE on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/java-setup.md Installs the Eclipse IDE, the standard IDE for Java development, using snap. Run 'eclipse' to start the IDE after installation. ```bash dev@ubuntu:~$ snap install eclipse --classic ``` -------------------------------- ### Install Android Studio Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/android-studio.md Use this command to install Android Studio using snap. The --classic flag is required for this snap. ```text sudo snap install android-studio --classic ``` -------------------------------- ### Setup for building Windows targets Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/rust-setup.md Install the necessary GNU toolchain for cross-compiling to Windows and add the Windows target to your Rust toolchain. ```bash sudo apt install binutils-mingw-w64 g++-mingw-w64 gcc-mingw-w64 ``` ```bash rustup target add x86_64-pc-windows-gnu ``` ```bash cargo build --target x86_64-pc-windows-gnu ``` -------------------------------- ### Install make utility Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/go-use.md If the `make` command is not found, install it using `sudo apt install make -y`. ```bash sudo apt install make -y ``` -------------------------------- ### Display .NET Installation Information Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/dotnet-setup.md Run this command to see details about your installed .NET SDKs, runtimes, and environment. ```bash dotnet --info ``` -------------------------------- ### List Installed .NET SDKs Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/dotnet-setup.md Use this command to get a list of all installed .NET SDK versions. ```bash dotnet --list-sdks ``` -------------------------------- ### Install Gradle on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/java-use.md Installs the Gradle build tool using the snap package manager. ```bash dev@ubuntu:~$ sudo snap install gradle --classic ``` -------------------------------- ### Install Visual Studio Code Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/dotnet-use.md Install Visual Studio Code using snap for classic confinement, which is recommended for IDEs. ```bash sudo snap install --classic code ``` -------------------------------- ### Install .NET 8 SDK on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet8-apt-install-ubuntu-package.md Use this command to install the .NET 8 SDK, which includes development tools. The `--install-suggests` flag installs PDB debug symbols. ```bash sudo apt update && sudo apt install --install-suggests dotnet-sdk-8.0 ``` -------------------------------- ### Install Git using Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/explanation/use-vcs.md Install the Git snap package if your use case requires it. This provides an alternative installation method. ```bash sudo snap install git-scm ``` -------------------------------- ### Setup for building WebAssembly targets Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/rust-setup.md Install Clang and LLD for WebAssembly compilation and add the `wasm32-unknown-unknown` target to your Rust toolchain. ```bash sudo apt install clang lld ``` ```bash rustup target add wasm32-unknown-unknown ``` ```bash cargo build --target wasm32-unknown-unknown ``` -------------------------------- ### Install Go Tool with go install Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Use this command to install the latest version of a Go tool when a version is not yet available through the package manager. Ensure Go is installed and `go` is in your PATH. ```bash go install url/of/tool/@latest ``` -------------------------------- ### Install PHPStorm using Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/phpstorm.md Use this command to install PHPStorm from the Snap Store. The --classic flag is required for IDEs. ```text sudo snap install phpstorm --classic ``` -------------------------------- ### Install .NET 7 SDK on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet7-apt-install-ubuntu-package.md Installs the .NET 7 SDK, which includes the runtime, allowing for development and running of .NET applications. ```bash sudo apt update && sudo apt install dotnet-sdk-7.0 ``` -------------------------------- ### Install a specific Go version using apt Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Installs a particular version of Go by specifying the version number in the package name. ```bash sudo apt install golang- ``` -------------------------------- ### Update package list for Go installation Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Run this command before installing Go using apt to ensure you get the latest available version. ```bash sudo apt update ``` -------------------------------- ### Install RustRover using Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/rustrover.md Use this command to install RustRover from the Snap Store. Ensure you have snapd installed and enabled. ```text sudo snap install rustrover --classic ``` -------------------------------- ### Install .NET SDK with Suggested Packages Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/explanation/debugging-with-dotnet.md Install the .NET SDK and automatically include suggested packages, which can include debug symbols, by using the --install-suggests flag with apt. ```bash sudo apt install dotnet9 --install-suggests ``` -------------------------------- ### Install Qt Creator Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/clang-setup.md Installs Qt Creator, an IDE suitable for C/C++ development, which can be configured to use Clang. ```bash sudo apt install qt-creator ``` -------------------------------- ### Install Maven on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/java-use.md Installs Maven and the default Java Development Kit from the Ubuntu archive. ```bash dev@ubuntu:~$ sudo apt install maven ``` -------------------------------- ### Install Tox for Virtual Environment Testing Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/python-setup.md Installs tox, a tool for automating tests in Python virtual environments, using the apt package manager. The example also shows how to list Python 3 binaries. ```bash ls -l /usr/bin/python3 `dev@ubuntu:~$ ``sudo apt install tox ``` -------------------------------- ### Install the latest Go version using apt Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Installs the most recent stable version of Go available in the Ubuntu repositories. ```bash sudo apt install golang-go ``` -------------------------------- ### Install CLion using Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/clion.md Use this command to install CLion from the Snap Store. The --classic flag is required for CLion. ```text sudo snap install clion --classic ``` -------------------------------- ### Install DataGrip using Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/datagrip.md Use this command to install DataGrip via Snapcraft. Ensure you have snapd installed and running. ```text sudo snap install datagrip --classic ``` -------------------------------- ### Install GoLand snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Installs GoLand, a dedicated IDE for Go development, as a snap package. ```bash sudo snap install goland --classic ``` -------------------------------- ### Install Eclipse IDE on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/gcc-setup.md Installs the Eclipse IDE using snap. After installation, the CDT (C/C++ Development Tools) can be installed from within Eclipse. ```bash sudo snap install eclipse --classic ``` -------------------------------- ### List Installed .NET Runtimes Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/dotnet-setup.md Execute this command to view all installed .NET runtime versions. ```bash dotnet --list-runtimes ``` -------------------------------- ### Install ASP.NET Core 7 Runtime on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet7-apt-install-ubuntu-package.md Installs the ASP.NET Core runtime, providing the most compatible runtime for .NET applications that do not include their own runtime. ```bash sudo apt update && sudo apt install aspnetcore-runtime-7.0 ``` -------------------------------- ### Verify Go installation Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Confirms that Go has been installed successfully by checking its version. ```bash go version ``` -------------------------------- ### Install software-properties-common Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet-install-backports-ppa.md If the 'add-apt-repository' command is not found, install the 'software-properties-common' package to resolve the issue. ```text sudo apt update && sudo apt install software-properties-common ``` -------------------------------- ### Install .NET 6 SDK on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet6-apt-install-ubuntu-package.md Use this command to install the .NET 6 SDK, which includes the runtime and development tools. The `dotnet6` package is an alias for this. ```bash sudo apt update && sudo apt install dotnet-sdk-6.0 ``` -------------------------------- ### Install Debuggers and Profilers with apt Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/gcc-setup.md Installs GDB and Valgrind using the apt package manager. The binutils package is installed automatically with gcc. ```bash sudo apt install -y gdb valgrind ``` -------------------------------- ### Install Android Studio on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/java-setup.md Installs Android Studio, an IDE for Android development which also supports Java, using snap. ```bash dev@ubuntu:~$ sudo snap install android-studio --classic ``` -------------------------------- ### Install Visual Studio Code on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/java-setup.md Installs Visual Studio Code using snap. It is recommended to also install the 'Extension Pack for Java' for Java development. ```bash dev@ubuntu:~$ sudo snap install code --classic ``` -------------------------------- ### Install multiple Go versions using apt Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Installs specific versions of Go side-by-side using the apt package manager. ```bash sudo apt install golang-1.21 golang-1.23 ``` -------------------------------- ### Install CLion Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/clang-setup.md Installs CLion using snap. This JetBrains IDE supports C/C++ development and can be set up with Clang. ```bash sudo snap install clion --classic ``` -------------------------------- ### Install WebStorm using Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/webstorm.md Use this command to install WebStorm via Snap. The --classic flag is required for IDEs. ```text sudo snap install webstorm --classic ``` -------------------------------- ### Install Git using APT Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/explanation/use-vcs.md Use this command to install the Git package on Ubuntu Desktop via the apt package manager. ```bash sudo apt install -y git ``` -------------------------------- ### Install .NET 7 Runtime on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet7-apt-install-ubuntu-package.md Installs the .NET runtime without ASP.NET Core components, suitable for running .NET applications that don't bundle a runtime. ```bash sudo apt update && sudo apt install dotnet-runtime-7.0 ``` -------------------------------- ### Install NetBeans with Java Runtime Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/python-setup.md Installs the default Java Runtime Environment and NetBeans IDE using apt and snap, respectively. The netbeansPython plugin can be installed from within NetBeans. ```bash sudo apt install default-jre > sudo snap install netbeans --classic ``` -------------------------------- ### Install Codium on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/gcc-setup.md Installs Codium, a free binary distribution of Visual Studio Code, using snap. This provides a lightweight IDE with C/C++ support. ```bash sudo snap install codium --classic ``` -------------------------------- ### Install Visual Studio Code Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/clang-setup.md Installs Visual Studio Code using snap. This IDE can be configured to use Clang as its compiler. ```bash sudo snap install code --classic ``` -------------------------------- ### Install VS Codium Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/dotnet-use.md Installs VS Codium using snap. This is a prerequisite for using VS Codium-based editors for debugging. ```bash sudo snap install --classic codium ``` -------------------------------- ### Install a specific Go version using snap channel Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Installs a specific Go version by selecting the appropriate channel. Use this to manage multiple Go versions or specific releases. ```bash sudo snap install go --channel=1.22/stable --classic ``` -------------------------------- ### Install ASP.NET Core Runtime 6.0 on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet6-apt-install-ubuntu-package.md Install the ASP.NET Core runtime to run .NET applications that don't bundle their own runtime. This is the most compatible runtime for .NET. ```bash sudo apt update && sudo apt install aspnetcore-runtime-6.0 ``` -------------------------------- ### Install IntelliJ IDEA Ultimate Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/intellij-idea.md Use this command to install the Ultimate edition of IntelliJ IDEA via snap. This command requires root privileges. ```text sudo snap install intellij-idea-ultimate --classic ``` -------------------------------- ### Install NetCoreDbg Debugger Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/dotnet-use.md Installs the NetCoreDbg debugger from the Snap Store. This debugger is used for .NET applications. ```bash sudo snap install --classic netcoredbg ``` -------------------------------- ### Install RubyMine using Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/rubymine.md Use this command to install RubyMine from the Snap Store. The --classic flag is required for IDEs. ```bash sudo snap install rubymine --classic ``` -------------------------------- ### Install Rider via Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/rider.md Use this command to install the Rider IDE using snap. The --classic flag is required for Rider. ```text sudo snap install rider --classic ``` -------------------------------- ### Install Software from a PPA Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/explanation/packaging.md Users can add your PPA to their system to install and receive updates for your software through the standard package management tools. ```bash sudo add-apt-repository ppa:/ sudo apt update sudo apt install ``` -------------------------------- ### Install ASP.NET Core Runtime 8.0 on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet8-apt-install-ubuntu-package.md Install the ASP.NET Core runtime to run .NET web applications. The `--install-suggests` flag includes PDB debug symbols. ```bash sudo apt update && sudo apt install --install-suggests aspnetcore-runtime-8.0 ``` -------------------------------- ### Install PyCharm IDE Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/pycharm.md Use this command to install the general PyCharm snap package. This is the recommended approach for the latest unified PyCharm experience. ```text sudo snap install pycharm --candidate --classic ``` -------------------------------- ### Build Live Documentation Preview Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/README.md Build a live preview of the documentation from within the `docs/` directory. This command requires the `make` utility. ```bash make run ``` -------------------------------- ### Install GCC Compilers on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/gcc-setup.md Installs the GCC compilers for C and C++ using apt. This is the standard way to get GCC on Ubuntu. ```bash sudo apt install gcc g++ ``` -------------------------------- ### Install .NET Runtime 6.0 on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet6-apt-install-ubuntu-package.md Install the base .NET runtime without ASP.NET Core components. Use this if you only need to run .NET applications. ```bash sudo apt update && sudo apt install dotnet-runtime-6.0 ``` -------------------------------- ### Install Vim with Python LSP and Flake8 Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/python-setup.md Installs Vim, the Python LSP Server, and Flake8 for enhanced Python development within Vim. This setup provides features like code completion and linting. ```bash sudo apt install -y vim python3-pylsp flake8 ``` -------------------------------- ### Create a .NET project directory Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/dotnet-use.md Create a directory for your .NET project and navigate into it. ```bash mkdir "HelloWorld" && cd "HelloWorld" ``` -------------------------------- ### Install Default Clang Version Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/clang-setup.md Installs the default Clang and clang++ executables along with their documentation. Use this for general C/C++ compilation. ```bash sudo apt install clang ``` -------------------------------- ### Install .NET 9 Runtime on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet9-apt-install-ubuntu-package.md Installs the .NET 9 Runtime without ASP.NET Core components. Includes suggested debug symbol packages. ```bash sudo apt update && sudo apt install --install-suggests dotnet-runtime-9.0 ``` -------------------------------- ### Install Build Systems with apt Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/gcc-setup.md Installs GNU Make and CMake using the apt package manager. These are common build systems for software development. ```bash sudo apt install -y make cmake ``` -------------------------------- ### Create a simple Go program Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/go-use.md Define the `main` package and `main` function, and import necessary packages like `fmt` for printing output. ```go package main import "fmt" func main() { fmt.Println("Hey Go!") } ``` -------------------------------- ### Add rust-analyzer component for IDEs Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/rust-setup.md For IDEs like Helix and Zed, install the `rust-analyzer` component using Rustup to get enhanced Rust support. ```bash rustup component add rust-analyzer ``` -------------------------------- ### Verify Zig installation (Ubuntu packages) Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/zig-setup.md After installing Zig from Ubuntu packages, run this command to verify the installation and check the installed version. ```bash zig version ``` -------------------------------- ### Install Default Java Development Kit on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/java-setup.md Installs the default Java Development Kit (JDK) for your current Ubuntu release using apt. ```bash dev@ubuntu:~$ sudo apt install default-jdk ``` -------------------------------- ### Install Latest Early Access OpenJDK Snap Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/java-setup.md Installs the latest early-access release of OpenJDK from the Snap Store using the 'edge' channel. ```bash dev@ubuntu:~$ sudo snap install openjdk --channel=edge ``` -------------------------------- ### Install Python package manager (pip) Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/python-setup.md Installs the pip Python package manager, which is used for installing dependencies within Python virtual environments. This avoids interfering with system Python installations. ```bash sudo apt install -y python3-pip python3-pip-whl ``` -------------------------------- ### Install Zig snap package Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/zig-setup.md Install the Zig snap package from the 'latest/beta' channel. This is useful for older Ubuntu releases or when a newer version is needed. ```bash sudo snap install zig --classic --channel=latest/beta ``` -------------------------------- ### Install OpenSSH Client Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/explanation/use-vcs.md Install the OpenSSH client package, which is necessary for generating and using SSH keys to securely connect to Git hosting providers. ```bash sudo apt install -y openssh-client ``` -------------------------------- ### Install Zig from Ubuntu packages Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/zig-setup.md Use this command to install the Zig package from the Ubuntu archive. This method is recommended for supported Ubuntu releases. ```bash sudo apt install zig ``` -------------------------------- ### Create Java Project with Maven Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/java-use.md Generates a new Java project using the Maven Quickstart Archetype. Press Enter to confirm selections. ```bash dev@ubuntu:~$ mvn archetype:generate -DgroupId=com.yourcompany \ > -DartifactId=helloworld -Dversion=1.0-SNAPSHOT \ > -Dpackage=com.yourcompany.helloworld \ > -DarchetypeGroupId=org.apache.maven.archetypes \ > -DarchetypeArtifactId=maven-archetype-quickstart \ > -DarchetypeVersion=1.4 ``` -------------------------------- ### Install ASP.NET Core 9 Runtime on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet9-apt-install-ubuntu-package.md Installs the ASP.NET Core 9 Runtime, which is the most compatible runtime for .NET applications. It includes suggested dependencies like debug symbols. ```bash sudo apt update && sudo apt install --install-suggests aspnetcore-runtime-9.0 ``` -------------------------------- ### Install IntelliJ IDEA Community Edition Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/reference/ides/intellij-idea.md Use this command to install the Community edition of IntelliJ IDEA via snap. This command requires root privileges. ```text sudo snap install intellij-idea-community --classic ``` -------------------------------- ### Install .NET Runtime 10.0 on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet10-apt-install-ubuntu-package.md Installs the .NET Runtime version 10.0 without ASP.NET Core components. Includes suggested dependencies like debug symbols. ```bash sudo apt update && sudo apt install --install-suggests dotnet-runtime-10.0 ``` -------------------------------- ### Install Rustup manager Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/rust-setup.md Install the Rustup manager from the Snap Store. Rustup is the recommended tool for developers building Rust applications for business or general use. ```bash snap install --classic rustup ``` -------------------------------- ### Install a .NET Component using dotnet-installer Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/dotnet-setup.md Installs a specified .NET component (e.g., runtime, sdk) and optionally a specific version. Use 'latest' or 'lts' for the newest or Long Term Support releases respectively. ```bash dotnet-installer install [ []] ``` ```bash dotnet-installer install runtime latest ``` ```bash dotnet-installer install sdk lts ``` ```bash dotnet-installer install aspnetcore-runtime 8 ``` ```bash dotnet-installer install sdk 9.0 ``` -------------------------------- ### Install ASP.NET Core Runtime 10.0 on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet10-apt-install-ubuntu-package.md Installs the ASP.NET Core Runtime version 10.0, which is the most compatible runtime for .NET applications. Includes suggested dependencies such as debug symbols. ```bash sudo apt update && sudo apt install --install-suggests aspnetcore-runtime-10.0 ``` -------------------------------- ### Install OpenJDK 24 Early Access on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/java-setup.md Installs the early access Ubuntu archive version of OpenJDK 24 using apt. This is for the latest development release. ```bash dev@ubuntu:~$ sudo apt install openjdk-24-jdk ``` -------------------------------- ### Install RubyMine IDE Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reference/ides.md Installs the JetBrains RubyMine IDE, a Ruby IDE, using Snap. Ensure you have Snap installed and enabled. ```text sudo snap install rubymine --classic ``` -------------------------------- ### Install GraalVM CE Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/graalvm-use.md Install the GraalVM Community Edition snap package using the snap store. This command installs version 21. ```bash sudo snap install graalvm-jdk --channel=v21 ``` -------------------------------- ### Create a C# .NET console project Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/dotnet-use.md Use the `dotnet new console` command to create a new 'Hello, World!' console application in C#. ```bash dotnet new console ``` -------------------------------- ### Install latest stable Rust toolchain with Rustup Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/rust-setup.md After installing Rustup, use this command to install the latest stable version of the Rust toolchain. ```bash rustup install stable ``` -------------------------------- ### Initialize Java Project with Gradle Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/java-use.md Use the `gradle init` command to create a new Java application project with specified configurations like DSL, testing framework, and package. Ensure Java is in your PATH or JAVA_HOME is set. ```bash mkdir helloworld && cd helloworld gradle init \ --type java-application \ --dsl kotlin \ --test-framework junit-jupiter \ --package com.yourcompany.helloworld \ --project-name helloworld \ --no-split-project \ --no-incubating ``` ```text . └── helloworld-gradle ├── app │ ├── build.gradle.kts │ └── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ └── yourcompany │ │ │ └── helloworld │ │ │ └── App.java │ │ └── resources │ └── test │ ├── java │ │ └── com │ │ └── yourcompany │ │ └── helloworld │ │ └── AppTest.java │ └── resources ├── gradle │ ├── libs.versions.toml │ └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle.kts ``` ```java /* * This Java source file was generated by the Gradle 'init' task. */ package com.yourcompany.helloworld; public class App { public String getGreeting() { return "Hello World!"; } public static void main(String[] args) { System.out.println(new App().getGreeting()); } } ``` ```java /* * This Java source file was generated by the Gradle 'init' task. */ package com.yourcompany.helloworld; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class AppTest { @Test void appHasAGreeting() { App classUnderTest = new App(); assertNotNull(classUnderTest.getGreeting(), "app should have a greeting"); } } ``` ```bash export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 ``` ```bash gradle run ``` ```text Calculating task graph as no cached configuration is available for tasks: run > Task :app:run Hello World! BUILD SUCCESSFUL in 424ms 2 actionable tasks: 1 executed, 1 up-to-date Configuration cache entry stored. ``` -------------------------------- ### Install Specific Clang Version Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/clang-setup.md Installs a specific version of Clang, such as clang-20. Note that versions other than the default do not install generic `clang` or `clang++` executables. ```bash sudo apt install clang-20 ``` -------------------------------- ### Initialize a Go module Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/go-use.md Use `go mod init` to create a `go.mod` file for your project, which tracks the Go version and external dependencies. Provide a repository URL for hosting the source. ```bash go mod init youruser.github.com/heygo ``` -------------------------------- ### Initialize a Zig project Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/tutorials/zig-use.md Use `zig init` to create a new Zig project with a standard directory structure including build scripts and source files. ```bash dev@ubuntu:~/zig/hello$ zig init ``` -------------------------------- ### Build and Preview Documentation Locally Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/contribute-docs.md Build a live preview of the documentation from within the `docs/` directory. This command uses Sphinx `autobuild` to automatically refresh the preview on save. ```bash make run ``` -------------------------------- ### Install .NET SDK 10.0 on Ubuntu Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/reuse/howto/dotnet-setup/dotnet10-apt-install-ubuntu-package.md Installs the .NET SDK version 10.0 and suggested dependencies like debug symbols. The `dotnet-sdk-aot-10.0` package is installed as a recommended dependency for ahead-of-time compilation. ```bash sudo apt update && sudo apt install --install-suggests dotnet-sdk-10.0 ``` -------------------------------- ### Install Delve debugger Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/go-setup.md Installs Delve, a popular debugger for Go, from the Ubuntu archive. ```bash sudo apt install delve ``` -------------------------------- ### Configure APT to Install .NET Packages from Proposed Archive Source: https://github.com/canonical/ubuntu-for-developers-docs/blob/main/docs/howto/dotnet-setup.md Configure APT to specifically consider .NET packages from the proposed archive for installation. This allows installing newer .NET versions available in the proposed updates. ```bash sudo tee /etc/apt/preferences.d/dotnet-proposed-updates >/dev/null </dev/null <