{
    "$schema": "../../Documentation/json-schema/distro-support-schema.json",
    "Debian GNU/Linux": {
        "installCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dpkg",
                "commandParts": [
                    "--configure",
                    "-a"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "update"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "install",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "uninstallCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dpkg",
                "commandParts": [
                    "--configure",
                    "-a"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "remove",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "updateCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dpkg",
                "commandParts": [
                    "--configure",
                    "-a"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "update",
                    "-y"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "upgrade",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "searchCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "apt-cache",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "search",
                    "--names-only",
                    "^{packageName}$"
                ]
            }
        ],
        "isInstalledCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "apt",
                "commandParts": [
                    "list",
                    "--installed",
                    "{packageName}"
                ]
            }
        ],
        "packageLookupCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dpkg",
                "commandParts": [
                    "-l",
                    "{packageName}"
                ]
            }
        ],
        "readSymLinkCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "readlink",
                "commandParts": [
                    "-f",
                    "{path}"
                ]
            }
        ],
        "expectedDistroFeedInstallDirectory": "/usr/lib/dotnet",
        "expectedMicrosoftFeedInstallDirectory": "/usr/share/dotnet",
        "installedSDKVersionsCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--list-sdks"
                ]
            }
        ],
        "installedRuntimeVersionsCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--list-runtimes"
                ]
            }
        ],
        "currentInstallationVersionCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--version"
                ]
            }
        ],
        "currentInstallPathCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "which",
                "commandParts": [
                    "dotnet"
                ]
            }
        ],
        "packages": [
            {
                "version": "6.0",
                "sdk": [
                    "dotnet-sdk-6.0"
                ],
                "runtime": [
                    "dotnet-runtime-6.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-6.0"
                ]
            },
            {
                "version": "7.0",
                "sdk": [
                    "dotnet-sdk-7.0"
                ],
                "runtime": [
                    "dotnet-runtime-7.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-7.0"
                ]
            },
            {
                "version": "8.0",
                "sdk": [
                    "dotnet-sdk-8.0"
                ],
                "runtime": [
                    "dotnet-runtime-8.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-8.0"
                ]
            },
            {
                "version": "9.0",
                "sdk": [
                    "dotnet-sdk-9.0"
                ],
                "runtime": [
                    "dotnet-runtime-9.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-9.0"
                ]
            }
        ],
        "versions": [
            {
                "version": "8",
                "preInstallCommands": [
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "install",
                            "-y",
                            "wget"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "wget",
                        "commandParts": [
                            "https://packages.microsoft.com/config/debian/8/packages-microsoft-prod.deb",
                            "-O",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "dpkg",
                        "commandParts": [
                            "-i",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    }
                ]
            },
            {
                "version": "9",
                "preInstallCommands": [
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "install",
                            "-y",
                            "wget"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "wget",
                        "commandParts": [
                            "https://packages.microsoft.com/config/debian/9/packages-microsoft-prod.deb",
                            "-O",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "dpkg",
                        "commandParts": [
                            "-i",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    }
                ]
            },
            {
                "version": "10",
                "preInstallCommands": [
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "install",
                            "-y",
                            "wget"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "wget",
                        "commandParts": [
                            "https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb",
                            "-O",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "dpkg",
                        "commandParts": [
                            "-i",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    }
                ]
            },
            {
                "version": "11",
                "preInstallCommands": [
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "install",
                            "-y",
                            "wget"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "wget",
                        "commandParts": [
                            "https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb",
                            "-O",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "dpkg",
                        "commandParts": [
                            "-i",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    }
                ]
            },
            {
                "version": "12",
                "preInstallCommands": [
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "install",
                            "-y",
                            "wget"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "wget",
                        "commandParts": [
                            "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb",
                            "-O",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "dpkg",
                        "commandParts": [
                            "-i",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    }
                ]
            }
        ]
    },
    "Ubuntu": {
        "installCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dpkg",
                "commandParts": [
                    "--configure",
                    "-a"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "update"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "install",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "uninstallCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dpkg",
                "commandParts": [
                    "--configure",
                    "-a"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "remove",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "updateCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dpkg",
                "commandParts": [
                    "--configure",
                    "-a"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "update",
                    "-y"
                ]
            },
            {
                "runUnderSudo": true,
                "commandRoot": "apt-get",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "upgrade",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "searchCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "apt-cache",
                "commandParts": [
                    "-o",
                    "DPkg::Lock::Timeout=180",
                    "search",
                    "--names-only",
                    "^{packageName}$"
                ]
            }
        ],
        "isInstalledCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "apt",
                "commandParts": [
                    "list",
                    "--installed",
                    "{packageName}"
                ]
            }
        ],
        "packageLookupCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dpkg",
                "commandParts": [
                    "-l",
                    "{packageName}"
                ]
            }
        ],
        "readSymLinkCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "readlink",
                "commandParts": [
                    "-f",
                    "{path}"
                ]
            }
        ],
        "expectedDistroFeedInstallDirectory": "/usr/lib/dotnet",
        "expectedMicrosoftFeedInstallDirectory": "/usr/share/dotnet",
        "installedSDKVersionsCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--list-sdks"
                ]
            }
        ],
        "installedRuntimeVersionsCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--list-runtimes"
                ]
            }
        ],
        "currentInstallationVersionCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--version"
                ]
            }
        ],
        "currentInstallPathCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "which",
                "commandParts": [
                    "dotnet"
                ]
            }
        ],
        "packages": [
            {
                "version": "6.0",
                "sdk": [
                    "dotnet-sdk-6.0"
                ],
                "runtime": [
                    "dotnet-runtime-6.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-6.0"
                ]
            },
            {
                "version": "7.0",
                "sdk": [
                    "dotnet-sdk-7.0"
                ],
                "runtime": [
                    "dotnet-runtime-7.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-7.0"
                ]
            },
            {
                "version": "8.0",
                "sdk": [
                    "dotnet-sdk-8.0"
                ],
                "runtime": [
                    "dotnet-runtime-8.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-8.0"
                ]
            },
            {
                "version": "9.0",
                "sdk": [
                    "dotnet-sdk-9.0"
                ],
                "runtime": [
                    "dotnet-runtime-9.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-9.0"
                ]
            }
        ],
        "versions": [
            {
                "version": "18.04",
                "preInstallCommands": [
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "install",
                            "-y",
                            "wget"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "wget",
                        "commandParts": [
                            "https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb",
                            "-O",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "dpkg",
                        "commandParts": [
                            "-i",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    }
                ]
            },
            {
                "version": "20.04",
                "preInstallCommands": [
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "-o",
                            "DPkg::Lock::Timeout=180",
                            "update"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "apt-get",
                        "commandParts": [
                            "install",
                            "-y",
                            "wget"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "wget",
                        "commandParts": [
                            "https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb",
                            "-O",
                            "packages-microsoft-prod.deb"
                        ]
                    },
                    {
                        "runUnderSudo": true,
                        "commandRoot": "dpkg",
                        "commandParts": [
                            "-i",
                            "packages-microsoft-prod.deb"
                        ]
                    }
                ]
            },
            {
                "version": "22.04"
            },
            {
                "version": "23.04"
            }
        ]
    },
    "Red Hat Enterprise Linux": {
        "installCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dnf",
                "commandParts": [
                    "install",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "uninstallCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dnf",
                "commandParts": [
                    "remove",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "updateCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dnf",
                "commandParts": [
                    "update",
                    "-y",
                    "{packageName}"
                ]
            }
        ],
        "searchCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dnf",
                "commandParts": [
                    "search",
                    "{packageName}",
                    "-q"
                ]
            }
        ],
        "isInstalledCommand": [
            {
                "runUnderSudo": true,
                "commandRoot": "dnf",
                "commandParts": [
                    "list",
                    "--installed",
                    "{packageName}",
                    "-q"
                ]
            }
        ],
        "packageLookupCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dnf",
                "commandParts": [
                    "list",
                    "install",
                    "{packageName}",
                    "-q"
                ]
            }
        ],
        "readSymLinkCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "readlink",
                "commandParts": [
                    "-f",
                    "{path}"
                ]
            }
        ],
        "expectedDistroFeedInstallDirectory": "/usr/lib64/dotnet",
        "expectedMicrosoftFeedInstallDirectory": "",
        "installedSDKVersionsCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--list-sdks"
                ]
            }
        ],
        "installedRuntimeVersionsCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--list-runtimes"
                ]
            }
        ],
        "currentInstallationVersionCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "dotnet",
                "commandParts": [
                    "--version"
                ]
            }
        ],
        "currentInstallPathCommand": [
            {
                "runUnderSudo": false,
                "commandRoot": "which",
                "commandParts": [
                    "dotnet"
                ]
            }
        ],
        "packages": [
            {
                "version": "6.0",
                "sdk": [
                    "dotnet-sdk-6.0"
                ],
                "runtime": [
                    "dotnet-runtime-6.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-6.0"
                ]
            },
            {
                "version": "7.0",
                "sdk": [
                    "dotnet-sdk-7.0"
                ],
                "runtime": [
                    "dotnet-runtime-7.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-7.0"
                ]
            },
            {
                "version": "8.0",
                "sdk": [
                    "dotnet-sdk-8.0"
                ],
                "runtime": [
                    "dotnet-runtime-8.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-8.0"
                ]
            },
            {
                "version": "9.0",
                "sdk": [
                    "dotnet-sdk-9.0"
                ],
                "runtime": [
                    "dotnet-runtime-9.0"
                ],
                "aspnetcore": [
                    "aspnetcore-runtime-9.0"
                ]
            }
        ],
        "versions": [
            {
                "version": "8.0"
            },
            {
                "version": "9.0"
            }
        ]
    }
}