🔧 AI Nachrichten ChatGPT showing blank screen [Fix](05.09.2026 um 19:55 Uhr)
⚠️ Malware / Trojaner / VirenSofort deinstallieren: Diese 19 Browser-Erweiterungen sind mit Malware verseucht(06.09.2026 um 08:00 Uhr)
⚠️ Malware / Trojaner / VirenLumma Stealer – dllhost.exe Hollowing, C2 Domains & Payload Extraction(01.09.2026 um 17:19 Uhr)
🔧 AI Nachrichten Simcha Kosman AMA: Owning ChatGPT's Secure Sandbox(03.09.2026 um 07:41 Uhr)
⚠️ Malware / Trojaner / VirenThe Gentlemen Ransomware Analysis: Go Obfuscated(04.09.2026 um 12:05 Uhr)
⚠️ Malware / Trojaner / VirenTengu, a Mirai-style Linux and IoT botnet(06.09.2026 um 15:27 Uhr)
🔧 AI Nachrichten ChatGPT showing blank screen [Fix](05.09.2026 um 19:55 Uhr)
⚠️ Malware / Trojaner / VirenSofort deinstallieren: Diese 19 Browser-Erweiterungen sind mit Malware verseucht(06.09.2026 um 08:00 Uhr)
⚠️ Malware / Trojaner / VirenLumma Stealer – dllhost.exe Hollowing, C2 Domains & Payload Extraction(01.09.2026 um 17:19 Uhr)
🔧 AI Nachrichten Simcha Kosman AMA: Owning ChatGPT's Secure Sandbox(03.09.2026 um 07:41 Uhr)
⚠️ Malware / Trojaner / VirenThe Gentlemen Ransomware Analysis: Go Obfuscated(04.09.2026 um 12:05 Uhr)
⚠️ Malware / Trojaner / VirenTengu, a Mirai-style Linux and IoT botnet(06.09.2026 um 15:27 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

I built my own package manager in Rust while building a Linux distro from scratch

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

A few months ago I decided to build a Linux distribution entirely from scratch using LFS (Linux From Scratch) and BLFS. Every package — GCC, glibc, systemd, XFCE — compiled by hand. No shortcuts.



About halfway through I ran into a problem: there's no package manager for LFS systems. You're just supposed to compile everything manually forever.



So I built one.






What is Chiral?



Chiral is a cross-distro binary package manager written in Rust. It works on any Linux system — including custom LFS/BLFS distros, Arch, Debian, and anything in between.



The key idea: instead of being tied to one distro's repos, Chiral uses a 3-way fallback chain:




CODE
1. Your own GitHub packages/ repo
↓ not found?
2. Debian stable repos
↓ not found?
3. Arch Linux repos






If a package exists anywhere in that chain, Chiral finds it and installs it.






Install in one line






CODE
curl -L https://github.com/Amaterus1125/Chiral-CrossDistro-Package-Manager/releases/latest/download/chiral -o chiral
chmod +x chiral
sudo mv chiral /usr/local/bin/chiral






100% static musl binary. No Rust, no dependencies, runs on any Linux including a fresh LFS system with nothing installed.






How dependency resolution works



When you run chiral install gtk3, it:




  1. Queries the Arch Linux API for gtk3's full dependency list

  2. Walks the entire tree recursively using BFS

  3. Checks each dep against your system before downloading

  4. Builds a topological install order so deepest deps go first

  5. Installs everything in order, gtk3 last




CODE
gtk3
├── glib2 ← installed 1st
├── cairo
│ └── pixman ← installed before cairo
├── pango
└── gdk-pixbuf2






The smart part: before downloading anything, Chiral checks if a dep is already on your system via pacman, dpkg, pkg-config, ldconfig, PATH, rustup, and direct filesystem scanning. It works alongside existing package managers without conflicting.






Commands






CODE
chiral install <package>   # install with full dep resolution
chiral remove <package> # clean remove — tracks every file
chiral update <package> # update one package
chiral upgrade # update everything
chiral search <query> # search available packages
chiral list # list installed packages
chiral info <package> # version, source, files
chiral deps <package> # dry run — see what would install
chiral self-update # update chiral itself






chiral info even works on packages not installed by Chiral:




CODE
chiral info rust
# Package : rust
# Status : not managed by chiral
# Version : 1.93.1
# Source : rustup (installed outside chiral)









The technical bits



Dependency resolution uses BFS to walk the full tree, then Kahn's algorithm for topological sort. Circular deps are detected and broken automatically.



File tracking DB records every installed file path so chiral remove is perfectly clean:




CODE
[steam=3.5.0-1|arch]
/usr/local/bin/steam
/usr/local/lib/steam/...






Self-updatingsudo chiral self-update hits the GitHub releases API, compares versions, downloads the new static binary and replaces itself.



Auto-sync — a GitHub Actions workflow runs every Sunday, checks Arch and Debian for newer versions of packages in the repo, repacks them and commits automatically. The package repo updates itself.



Root vs user mode — runs system-wide as root (/usr/local) or per-user as a regular user (~/.local). No configuration needed.






Why I built this



LFS teaches you how Linux actually works by making you build it yourself. But once you've built it, you're stuck installing everything by hand forever. There's no package manager for a system you assembled from scratch.



I wanted one. So I built it in Rust, made it work on any Linux regardless of what's installed, and gave it the ability to pull packages from three different sources so it can find almost anything.



The name comes from chirality in chemistry — molecules that are mirror images of each other. The two UI modes (Dextro and Levo) reflect this. Dextro is the default orange helix animation. Levo is a DNA sequencer animation that shows base pairs (A═T, G≡C) scrolling as packages install.






What's next




  • Orphan detection (chiral autoremove)

  • Conflict detection

  • KDE support on my custom distro






GitHub: Chiral Package Manager



Built by one person while building a Linux distro from scratch. If you're doing LFS/BLFS or want a package manager that works everywhere, give it a try.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 50%
🟡 In Evaluierung 21%
🟢 Keine Auswirkung 19%
Spannende Innovation 10%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
KARR Security vulnerability
1 Quelle
How can we detect if Claude in Chrome or other LLM browser agents are accessing/hijacking our web app user authenticated sessions and Block it
1 Quelle
OpenAI confirms ChatGPT is down ahead of 'Astra' model launch
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built my own package manager in Rust while building a Linux distro from scratch

Thematisch verwandte Begriffe: built, package, manager, Rust · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...