grub-install

Install GRUB to a device. More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Installing-GRUB-using-grub_002dinstall.html>.

Install

All systems
curl cmd.cat/grub-install.sh
Debian Debian
apt-get install grub-pc
Ubuntu
apt-get install lupin-support
Alpine
apk add grub
Arch Arch Linux
pacman -S grub
image/svg+xml Kali Linux
apt-get install grub-legacy
Fedora
dnf install grub2-common
Windows (WSL2)
sudo apt-get update sudo apt-get install lupin-support
Raspbian
apt-get install grub2-common
Docker
docker run cmd.cat/grub-install grub-install powered by Commando

Install GRUB to a device. More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Installing-GRUB-using-grub_002dinstall.html>.

  • Install GRUB on a BIOS system:
    grub-install --target=i386-pc path/to/device
  • Install GRUB on an UEFI system:
    grub-install --target=x86_64-efi --efi-directory=path/to/efi_directory --bootloader-id=GRUB
  • Install GRUB pre-loading specific modules:
    grub-install --target=x86_64-efi --efi-directory=path/to/efi_directory --modules="part_gpt part_msdos"

© tl;dr; authors and contributors