Gdisk on almalinux10 for raspberry pi

Hello!

I am the developer of shrink-backup and I just got working on including almalinux in the script due to it being one of the few distros that provide a version with gpt partition table OOTB! :slight_smile:

Problem is, I need gdisk (sgdisk) to make it work, parted does not work for some of the operations I do in the script.
Mark my surprise when I could not find gdisk in the repos, and a quick search gave me this thread: RHEL 10 vs. gdisk removal that unfortunately had no answers, and got closed 11 hours ago (just my luck).

I saw the package exists at least in almalinux 8, maybe 9 too? But is there any way to get access to that package on almalinux 10?
Or could it be possible for the package maintainers to include gdisk in almalinux 10 for rpi?

Otherwise I will have to drop the idea of incuding almalinux in the backup script, but it would be really awesome if I could! (it would also be the base distro for testing gpt partition table functionality)

Thank you in advance!

Hi,

I found the package in EPEL repository

You can install epel repository with this command:

sudo dnf install epel-release
sudo dnf install gdisk

PS.: EPEL its available in ARM64 arch too.

image

Regards!

1 Like

Thank you so much!

It would mean one more dependency (and repo), but that’s fine.

I find it kinda odd that RHEL dropped gdisk in the first place, but understand if there is limited mapower to manually include packages on AlmaLinux.

I actually didn’t think someone would respond so I went with AlmaLinux 9 and was prepared to only have it supported until EOL, but this is WAY better even if not ideal.

Ty ty ty! <3

(as soon I have made sure it works on rpi with AlmaLinux 10 I will mark your response as solution, I just need to rewrite the 10 version and do some testing, after I get some sleep)

Edit

This worked like a charm!
Thank you so much!

2 Likes