87

In Ubuntu, we use this command to update GRUB:

# update-grub

But how do I update GRUB version 2.00 in Arch Linux?

Matthias Braun
  • 7,797
  • 7
  • 45
  • 54
Hamed Kamrava
  • 6,678
  • 12
  • 35
  • 47
  • normally grub is upgraded via pacman when there is an update. You must run `pacman -Syu` – mavillan Jan 31 '14 at 16:58
  • 1
    when grub is updated via pacman, automatically launch `grub-mkconfig` to properly configure the new grub version – mavillan Jan 31 '14 at 17:27
  • You should uninstall `grub` - youre only complicating things using it at all. – mikeserv Jan 25 '15 at 17:59
  • 2
    Grub is the only thing I've ever used for dual boot setups. Care to offer a less complicated alternative @mikeserv? I've looked at syslinux but never could get it to do what I wanted. It was too complicated. – Kenny Dec 08 '15 at 01:32
  • 1
    [Is GRUB the best bootloading solution? Is there an easier alternative?](http://unix.stackexchange.com/questions/146784/is-grub-the-best-bootloading-solution-is-there-an-easier-alternative/146803#146803) - if you go through with it, i'm willing to bet you'll be happier for it. [This](http://unix.stackexchange.com/a/212970/52934) walks-through an installation in detail, though the use-case is pretty targeted there. The best place to learn is at http://rodsbooks.com - but the first link will take you there. – mikeserv Dec 08 '15 at 01:43

4 Answers4

135

The update-grub command is just a script which runs the grub-mkconfig tool to generate a grub.cfg file. See the Archlinux GRUB documentation. It refers to the following:

# grub-mkconfig -o /boot/grub/grub.cfg
Hamed Kamrava
  • 6,678
  • 12
  • 35
  • 47
2

You can install the same update-grub command on arch linux with this aur package: https://aur.archlinux.org/packages/update-grub/

1

One solution is for pacman to automatically update grub, which is accomplished by installing grub-hook from AUR.

https://aur.archlinux.org/packages/grub-hook/

Kevin
  • 408
  • 3
  • 12
0

There is also the graphical tool grub-customizer that automatically runs os-prober and lets you customize the GRUB prompt in many ways.

Felix Dombek
  • 313
  • 1
  • 9