Skip to content

Instantly share code, notes, and snippets.

@ZaWertun
Last active November 6, 2022 14:22
Show Gist options
  • Save ZaWertun/cd1b1efbfe52a1834ec98a75530ad3a9 to your computer and use it in GitHub Desktop.
Save ZaWertun/cd1b1efbfe52a1834ec98a75530ad3a9 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
sudo dnf --assumeyes
--setopt=install_weak_deps=False \
--installroot=$(readlink -f ./chroot) \
--releasever=$(python3 -c 'import dnf; b=dnf.dnf.Base(); print(b.conf.releasever)') \
install dnf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment