|
1 | 1 | # Install AlmaLinux10 |
2 | 2 |
|
| 3 | +Before proceeding with the installation, we need to make sure that no other WSL2 distribution (aka: _distro_) is running. |
| 4 | +This is important because this installation will fail if required ports are already in use by another distro. |
| 5 | + |
3 | 6 | Open `Windows Terminal`. |
4 | 7 |
|
5 | | -List the available Linux distributions (aka: _distros_) by executing: |
| 8 | +## Stop other WSL2 distros |
| 9 | + |
| 10 | +List all installed distros: |
| 11 | + |
| 12 | +```shell |
| 13 | +wsl -l -v |
| 14 | +``` |
| 15 | + |
| 16 | +If there is no other distro installed, you will see the below output (an empty list): |
| 17 | + |
| 18 | +```text |
| 19 | + NAME STATE VERSION |
| 20 | +``` |
| 21 | + |
| 22 | +In this case, you can jump to the [installation](#install-almalinux10-1) section. |
| 23 | + |
| 24 | +If you have other distros installed, the output could look similar to the below: |
| 25 | + |
| 26 | +```text |
| 27 | + NAME STATE VERSION |
| 28 | +* AlmaLinux-8 Stopped 2 |
| 29 | +* AlmaLinux-9 Running 2 |
| 30 | +``` |
| 31 | + |
| 32 | +Make sure that the **STATE** column reads **Stopped** for all distros. |
| 33 | +If any of them reads **Running**, you must stop if first by executing `wsl -t <distro-name>`, for example: `wsl -t AlmaLinux-9`. |
| 34 | +Once you have stopped all distros, you can continue to the [installation](#install-almalinux10-1) section. |
| 35 | + |
| 36 | +## Install AlmaLinux10 |
| 37 | + |
| 38 | +List the available Linux distros by executing: |
6 | 39 |
|
7 | 40 | ```shell |
8 | 41 | wsl --list --online |
@@ -39,6 +72,14 @@ OracleLinux_9_1 Oracle Linux 9.1 |
39 | 72 |
|
40 | 73 | Note the two columns: **NAME** and **FRIENDLY NAME**. |
41 | 74 | To install a specific distro, use the value from the **NAME** column, in this case: `AlmaLinux-10`. |
| 75 | + |
| 76 | +> If you try to install a distro that is already installed, the installation process will fail: |
| 77 | +> |
| 78 | +> Downloading: AlmaLinux OS 10 |
| 79 | +> Installing: AlmaLinux OS 10 |
| 80 | +> A distribution with the supplied name already exists. Use --name to choose a different name. |
| 81 | +> Error code: Wsl/InstallDistro/Service/RegisterDistro/ERROR_ALREADY_EXISTS |
| 82 | +
|
42 | 83 | Install the AlmaLinux10 distro by executing the below command: |
43 | 84 |
|
44 | 85 | ```shell |
@@ -112,7 +153,7 @@ Update/Upgrade system packages: |
112 | 153 | sudo dnf upgrade -y |
113 | 154 | ``` |
114 | 155 |
|
115 | | -Now, install the latest version of **Ansible Core** and run **ansible-galaxy** in order to install collections: |
| 156 | +Now, install the latest version of **Ansible Core** and run **ansible-galaxy** to install collections: |
116 | 157 |
|
117 | 158 | ```shell |
118 | 159 | sudo dnf install ansible-core -y |
|
0 commit comments