{"id":16243260,"url":"https://github.com/svrooij/winget-pkgs-index","last_synced_at":"2025-04-08T10:54:54.160Z","repository":{"id":196084845,"uuid":"694157150","full_name":"svrooij/winget-pkgs-index","owner":"svrooij","description":"Open-source index of https://github.com/microsoft/winget-pkgs","archived":false,"fork":false,"pushed_at":"2024-10-29T12:06:45.000Z","size":4879,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T14:35:36.418Z","etag":null,"topics":["intune","winget"],"latest_commit_sha":null,"homepage":"https://wintuner.app/docs/related/winget-package-index","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svrooij.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"svrooij"}},"created_at":"2023-09-20T12:48:00.000Z","updated_at":"2024-10-29T12:06:48.000Z","dependencies_parsed_at":"2023-09-21T08:58:12.048Z","dependency_job_id":"22484d8d-7f61-4b63-b711-673ccb7c9453","html_url":"https://github.com/svrooij/winget-pkgs-index","commit_stats":null,"previous_names":["svrooij/winget-pkgs-index"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svrooij%2Fwinget-pkgs-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svrooij%2Fwinget-pkgs-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svrooij%2Fwinget-pkgs-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svrooij%2Fwinget-pkgs-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svrooij","download_url":"https://codeload.github.com/svrooij/winget-pkgs-index/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247829471,"owners_count":21002994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["intune","winget"],"created_at":"2024-10-10T14:14:20.382Z","updated_at":"2025-04-08T10:54:54.155Z","avatar_url":"https://github.com/svrooij.png","language":null,"funding_links":["https://github.com/sponsors/svrooij"],"categories":[],"sub_categories":[],"readme":"# winget-pkgs-index\n\nOpen-source package index of [Windows Package Manager repository](https://github.com/microsoft/winget-pkgs)\n\nDocumentation: [wintuner.app/docs/related/winget-package-index/](https://wintuner.app/docs/related/winget-package-index/)\n\n## Why?\n\n[WingetIntune](https://github.com/svrooij/wingetintune) uses winget to search the correct installer to publish to Intune. It had a dependency on winget (thus making it platform dependent) and it was slow. This project is a simple index of all packages in the winget repository. It is updated every 6 hours through a [github action](https://github.com/svrooij/winget-pkgs-index/actions/workflows/refresh.yml).\n\n## Usage\n\n| Kind | Online link | Download URL |\n| ---- | ----------- | ------------ |\n| CSV v2 | [index.v2.csv](https://github.com/svrooij/winget-pkgs-index/blob/main/index.v2.csv) | `https://github.com/svrooij/winget-pkgs-index/raw/main/index.v2.csv` |\n| JSON v2 | [index.json](https://github.com/svrooij/winget-pkgs-index/blob/main/index.v2.json) | `https://github.com/svrooij/winget-pkgs-index/raw/main/index.v2.json` |\n| CSV | [index.csv](https://github.com/svrooij/winget-pkgs-index/blob/main/index.csv) | `https://github.com/svrooij/winget-pkgs-index/raw/main/index.csv` |\n| JSON | [index.json](https://github.com/svrooij/winget-pkgs-index/blob/main/index.json) | `https://github.com/svrooij/winget-pkgs-index/raw/main/index.json` |\n\n## Latest version wrong?\n\nSince the winget community does not force semantic versioning, there are some issues with computing the latest version.\nThe code that is used to find the latest version for a package is defined as follows.\nIf you have a better solution, please let me know, or send a PR for the [winget-intune](https://github.com/svrooij/WingetIntune/blob/cead73bcacfa1d9062c77d2fc027175520f407b9/src/Winget.CommunityRepository/VersionsExtensions.cs#L8C1-L36C2).\n\n```csharp\ninternal static class VersionsExtensions\n{\n    internal static string? GetHighestVersion(this IEnumerable\u003cstring\u003e versions)\n    {\n        if (versions is null || !versions.Any()) { return string.Empty; }\n        return versions.Max(new VersionComparer());\n    }\n}\n\ninternal class VersionComparer : IComparer\u003cstring\u003e\n{\n    public int Compare(string? x, string? y)\n    {\n        if (x is null \u0026\u0026 y is null) { return 0; }\n        if (x is null) { return -1; }\n        if (y is null) { return 1; }\n        try\n        {\n            var xVersion = new Version(x);\n            var yVersion = new Version(y);\n            return xVersion.CompareTo(yVersion);\n        }\n        catch\n        {\n            return x.CompareTo(y);\n        }\n\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvrooij%2Fwinget-pkgs-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvrooij%2Fwinget-pkgs-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvrooij%2Fwinget-pkgs-index/lists"}