{"id":19325426,"url":"https://github.com/krypt0nn/whatadistro","last_synced_at":"2026-05-12T12:08:38.602Z","repository":{"id":167360553,"uuid":"642950624","full_name":"krypt0nn/whatadistro","owner":"krypt0nn","description":"Rust library to identify your linux distribution :crab:","archived":false,"fork":false,"pushed_at":"2023-05-19T19:55:21.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-06T06:43:35.985Z","etag":null,"topics":["linux","rust","unix"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"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/krypt0nn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-05-19T18:13:18.000Z","updated_at":"2023-05-19T19:55:25.000Z","dependencies_parsed_at":"2024-01-17T16:02:04.035Z","dependency_job_id":null,"html_url":"https://github.com/krypt0nn/whatadistro","commit_stats":null,"previous_names":["krypt0nn/whatadistro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fwhatadistro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fwhatadistro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fwhatadistro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fwhatadistro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krypt0nn","download_url":"https://codeload.github.com/krypt0nn/whatadistro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240427326,"owners_count":19799471,"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":["linux","rust","unix"],"created_at":"2024-11-10T02:10:01.194Z","updated_at":"2026-05-12T12:08:33.583Z","avatar_url":"https://github.com/krypt0nn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🦀 whatadistro\u003c/h1\u003e\n\nRust library to identify your linux distribution\n\n## Examples\n\n### Get current distro name\n\n```rust\nlet distro = whatadistro::identify()\n    .expect(\"Failed to parse os-release file\");\n\nprintln!(\"Your distro name is {}\", distro.name());\n```\n\n### Compare current distro with some another\n\nCan be used in an app to display a command to download optional dependency. For example, show `apt install git` for every debian-based system, which are Linux Mint, Ubuntu, Deepin, etc.\n\n```rust\nlet status = whatadistro::identify()\n    .map(|distro| distro.is_similar(\"arch\")) // whatadistro::Distro::Arch can be used as well\n    .unwrap_or(false);\n\nprintln!(\"Is current system arch-based: {:?}\", status);\n```\n\nAuthor: [Nikita Podvirnyy](https://github.com/krypt0nn)\n\nLicensed under [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fwhatadistro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrypt0nn%2Fwhatadistro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fwhatadistro/lists"}