{"id":50319482,"url":"https://github.com/arcboxlabs/distro","last_synced_at":"2026-05-29T02:30:20.683Z","repository":{"id":339222719,"uuid":"1160984406","full_name":"arcboxlabs/distro","owner":"arcboxlabs","description":"Linux distribution rootfs download, caching, and extraction — supports 16 distros via LXC Simplestreams","archived":false,"fork":false,"pushed_at":"2026-02-18T16:09:48.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-05T01:41:52.015Z","etag":null,"topics":["arcbox","container","distro","download","linux","lxc","rootfs","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arcboxlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-18T15:49:31.000Z","updated_at":"2026-02-18T16:09:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/arcboxlabs/distro","commit_stats":null,"previous_names":["arcbox-labs/distro","arcboxlabs/distro"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/arcboxlabs/distro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fdistro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fdistro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fdistro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fdistro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arcboxlabs","download_url":"https://codeload.github.com/arcboxlabs/distro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fdistro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33634611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["arcbox","container","distro","download","linux","lxc","rootfs","rust"],"created_at":"2026-05-29T02:30:19.978Z","updated_at":"2026-05-29T02:30:20.675Z","avatar_url":"https://github.com/arcboxlabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# distro\n\n[![CI](https://github.com/arcbox-labs/distro/actions/workflows/ci.yml/badge.svg)](https://github.com/arcbox-labs/distro/actions/workflows/ci.yml)\n[![License: MIT/Apache-2.0](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](LICENSE)\n[![Rust: 1.85+](https://img.shields.io/badge/rust-1.85%2B-orange.svg)](https://www.rust-lang.org)\n[![Crates: 2](https://img.shields.io/badge/crates-2-green.svg)](#architecture)\n[![Distros: 16](https://img.shields.io/badge/distros-16-purple.svg)](#supported-distributions)\n\nLinux distribution rootfs download, verification, caching, and extraction.\n\nA Rust workspace providing a unified API to download rootfs images for **16 Linux distributions** via the [LXC Images](https://images.linuxcontainers.org) Simplestreams protocol, with built-in mirror selection, SHA256 integrity verification, and local caching.\n\n## Supported Distributions\n\n| Distro | Default Version | Distro | Default Version |\n|--------|----------------|--------|----------------|\n| Alma | 9 | Kali | current |\n| Alpine | 3.21 | NixOS | 25.05 |\n| Arch | current | openEuler | 24.03 |\n| CentOS | 9-Stream | openSUSE | tumbleweed |\n| Debian | 12 | Oracle | 9 |\n| Devuan | daedalus | Rocky | 9 |\n| Fedora | 41 | Ubuntu | 24.04 |\n| Gentoo | current | Void | current |\n\n## Usage\n\nSee [USAGE.md](USAGE.md) for detailed examples.\n\n```rust\nuse distro::{Distro, Version, Arch, Mirror, download_from_lxc};\n\nlet result = download_from_lxc(\n    Distro::Alpine,\n    \u0026Version::new(\"3.21\"),\n    Arch::current(),\n    \u0026Mirror::default(),\n    |downloaded, total| eprintln!(\"{downloaded}/{total} bytes\"),\n).await?;\n```\n\n## Architecture\n\n### Download Sources\n\n| Source | Coverage | Checksum | Use Case |\n|--------|----------|----------|----------|\n| **LXC Images** | All 16 distros | SHA256 (from Simplestreams JSON) | Default, recommended |\n| **Official** | Alpine, Ubuntu, Debian, Fedora | SHA256/SHA512 (from checksum files) | When official sources are preferred |\n\n### Simplestreams Protocol\n\nThe LXC Images source uses the Simplestreams protocol:\n\n1. Fetch `{mirror}/streams/v1/images.json` (static JSON index)\n2. Look up product key: `{lxc_name}:{release}:{arch}:default`\n3. Select the latest version entry\n4. Extract `rootfs.tar.xz` path + SHA256 from items\n5. Download and verify\n\n### Cache Layout\n\n```\n~/.local/share/arcbox/rootfs/\n└── {distro}/\n    └── {version}/\n        └── {arch}/\n            ├── metadata.json    # CacheMetadata (distro, version, arch, sha256, ...)\n            └── rootfs.tar.xz    # Downloaded archive\n```\n\nCache integrity is verified using streaming SHA256 (8 KiB chunks) to avoid loading entire archives into memory. Corrupted entries are automatically removed and re-downloaded.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for workspace structure, build requirements, and testing.\n\n## License\n\nMIT OR Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcboxlabs%2Fdistro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcboxlabs%2Fdistro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcboxlabs%2Fdistro/lists"}