# Update-grub: command not found

**URL:** <https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968>\
**Category:** Ask Fedora\
**Tags:** grub\
**Created:** [October 7, 2026, 5:05pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968 "2026-10-07T17:05:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![theking2](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/theking2/32/57046_2.png) [@theking2](https://discussion.fedoraproject.org/u/theking2)\
**Post date:** [October 7, 2026, 5:05pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/1 "2026-10-07T17:05:45Z")

</div>

Is `update-grub` the same as `grub-mkconfig2` on Fedora?

---

<div class="post-metadata">

**Author:** ![anon94964583](https://avatars.discourse-cdn.com/v4/letter/a/603e79/32.png) [@anon94964583](https://discussion.fedoraproject.org/u/anon94964583)\
**Post date:** [October 7, 2026, 5:09pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/2 "2026-10-07T17:09:24Z")

</div>

`update-grub` is not in Fedora its in Debian, update-grub is built around `grub2-mkconfig`

---

<div class="post-metadata">

**Author:** ![chillzone](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/chillzone/32/56762_2.png) [@chillzone](https://discussion.fedoraproject.org/u/chillzone)\
**Post date:** [October 7, 2026, 5:10pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/3 "2026-10-07T17:10:08Z")

</div>

> [@theking2](#):
>
> Is `update-grub` the same as `grub-mkconfig2` on Fedora?

**No** , `update-grub` and `grub2-mkconfig` are not the same command on Fedora, nor does `update-grub` exist in the Fedora ecosystem.

Just for the sake of Informational  
The equivalent commands to update GRUB in Fedora are:

- **For BIOS systems:**

- **For UEFI systems:**

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

```plaintext

```

---

<div class="post-metadata">

**Author:** ![pg-tips](https://avatars.discourse-cdn.com/v4/letter/p/aad0ee/32.png) [@pg-tips](https://discussion.fedoraproject.org/u/pg-tips)\
**Post date:** [October 7, 2026, 5:13pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/4 "2026-10-07T17:13:11Z")

</div>

> [@chillzone](#):
>
> `sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg`

No, this is incorrect.

On Fedora UEFI systems, `/boot/efi/EFI/fedora/grub.cfg` is a small fixed file that redirects to the “real” GRUB config on the `/boot` partition.

If you overwrite `/boot/efi/EFI/fedora/grub.cfg` then you’ll cause problems. On recent Fedoras, `grub2-mkconfig` generally gives you an error though rather than going ahead and doing the damage.

---

<div class="post-metadata">

**Author:** ![chillzone](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/chillzone/32/56762_2.png) [@chillzone](https://discussion.fedoraproject.org/u/chillzone)\
**Post date:** [October 7, 2026, 5:29pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/5 "2026-10-07T17:29:53Z")

</div>

Thank You @pg-tips I have removed that note I had, Jeff @computersavvy and I had a similar conversation a while back and I thought I had updated that information…👍

> [@pg-tips](#):
>
> Fedoras, `grub2-mkconfig` generally gives you an error though rather than going ahead and doing the damage.

Indeed it dose:

```plaintext
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
[sudo] password for me: 
Running `grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg' will overwrite the GRUB wrapper.
Please run `grub2-mkconfig -o /boot/grub2/grub.cfg' instead to update grub.cfg.
GRUB configuration file was not updated.

```

---

<div class="post-metadata">

**Author:** ![theking2](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/theking2/32/57046_2.png) [@theking2](https://discussion.fedoraproject.org/u/theking2)\
**Post date:** [October 7, 2026, 6:05pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/6 "2026-10-07T18:05:19Z")

</div>

Oh thanks! what about `grubby`?

---

<div class="post-metadata">

**Author:** ![chillzone](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/chillzone/32/56762_2.png) [@chillzone](https://discussion.fedoraproject.org/u/chillzone)\
**Post date:** [October 7, 2026, 6:24pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/7 "2026-10-07T18:24:41Z")

</div>

**grubby** is preferred for routine changes because it is designed to work with Fedora’s BLS standard. Common grubby operations include:

- **Set default kernel:** `sudo grubby --set-default /boot/vmlinuz-$(uname -r)`

- **Add kernel arguments to all kernels:** `sudo grubby --args="parameter" --update-kernel=ALL`

- **View kernel info:** `sudo grubby --info=ALL`

---

<div class="post-metadata">

**Author:** ![theking2](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/theking2/32/57046_2.png) [@theking2](https://discussion.fedoraproject.org/u/theking2)\
**Post date:** [October 7, 2026, 7:06pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/8 "2026-10-07T19:06:53Z")

</div>

that is so nice!.

## todo

- Unlearn everything /etc/default/grub and grub2-mkconfig
- readup on grubby
- have The Internet to unlearn everything /etc/default/grub and grub2-mkconfig

The first might be possible (at 60+, [why not](https://www.psychologytoday.com/us/blog/common-sense-science/202601/neuroplasticity-across-the-lifespan)) The latter is not impossible.

---

<div class="post-metadata">

**Author:** ![computersavvy](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/computersavvy/32/4741_2.png) [@computersavvy](https://discussion.fedoraproject.org/u/computersavvy)\
**Post date:** [October 7, 2026, 8:40pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/9 "2026-10-07T20:40:18Z")

</div>

> [@theking2](#):
>
> - Unlearn everything /etc/default/grub and grub2-mkconfig
> - readup on grubby

Caution with this approach.

Grubby modifies several files at once so use it with caution. It is intended to modify kernel command line options and does so very nicely.

Some of the files modified include /etc/default/grub, /etc/kernel/cmdline, files in /boot/loader/entries, and potentially others. I have not dug into the code to see if there are other files that may be affected when using grubby though I have personally seen the changes in all the ones I listed.

You will still need to be capable of using grub2-mkconfig for some changes.

---

<div class="post-metadata">

**Author:** ![theking2](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/theking2/32/57046_2.png) [@theking2](https://discussion.fedoraproject.org/u/theking2)\
**Post date:** [October 11, 2026, 1:33pm UTC](https://discussion.fedoraproject.org/t/update-grub-command-not-found/203968/10 "2026-10-11T13:33:39Z")

</div>

> [@computersavvy](#):
>
> You will still need to be capable of using grub2-mkconfig for some changes

Elaborate
