A setup script that brings the Arch Linux AUR ecosystem to any Linux distro by spinning up an Arch Linux container via Distrobox and wiring up yay as a first-class command on your host shell.
- Checks dependencies — verifies
distroboxand a container runtime (podmanordocker) are available. - Creates an Arch Linux container — uses Distrobox to create a container named
arch-dev(skips if it already exists). - Installs base packages — runs
pacman -Syuand installsbase-devel,git,curl, andwgetinside the container. - Installs
yay— clones and buildsyay-binfrom the AUR inside the container. - Exports
yayto the host — makes theyaybinary available at~/.local/binviadistrobox-export. - Updates
PATH— adds~/.local/binto your shell config (~/.zshrcor~/.bashrc) if not already present. - Adds a
yaywrapper function — the wrapper automatically exports newly installed app.desktopfiles to your launcher after everyyay -Sinstall. - Installs shell tools — sets up
starship,zsh-syntax-highlighting,zsh-autosuggestions, andfzfinside the container.
| Dependency | Notes |
|---|---|
distrobox |
v1.4+ recommended |
podman or docker |
Distrobox requires one of these as a container runtime |
zsh or bash |
The script auto-detects your shell |
chmod +x imuyay.sh
./imuyay.shOnce complete, reload your shell:
source ~/.zshrc # or ~/.bashrcThen install any AUR package as you normally would:
yay -S vlc
yay -S spotify
yay -S google-chromeInstalled apps will appear in your desktop launcher automatically.
- The Arch container is named
arch-dev. You can enter it directly at any time withdistrobox enter arch-dev. - The
yaywrapper only auto-exports.desktopfiles on-S(install) operations. Otheryayflags work normally. - Shell tool installation (starship, fzf, etc.) is non-critical — the script will warn but not fail if any of those steps encounter issues.
- The script is idempotent: running it multiple times is safe and will skip already-completed steps.