almalinux 10.1でgdiskを実行しようとしたところ以下の様にコマンドがないと言われてしまいました。
# gdisk
-bash: gdisk: command not found
パッケージを探す
以下の様に探してもパッケージが見つかりません。
# dnf info gdisk
AlmaLinux 10 - AppStream 2.1 MB/s | 2.4 MB 00:01
AlmaLinux 10 - BaseOS 7.6 MB/s | 21 MB 00:02
AlmaLinux 10 - CRB 406 kB/s | 547 kB 00:01
AlmaLinux 10 - Extras 11 kB/s | 10 kB 00:00
Error: No matching Packages to list
9.xでの確認
9.7環境で見てみるとインストールはされていませんが、以下の様にappstreamリポジトリに存在するようです。
gdiskを実行してみる
# gdisk
bash: gdisk: command not found...
Install package 'gdisk' to provide command 'gdisk'? [N/y] N
リポジトリ上からgdiskの検索
$ dnf info gdisk
Last metadata expiration check: 0:05:40 ago on Thu Apr 30 11:19:55 2026.
Available Packages
Name : gdisk
Version : 1.0.7
Release : 5.el9
Architecture : x86_64
Size : 242 k
Source : gdisk-1.0.7-5.el9.src.rpm
Repository : appstream
Summary : An fdisk-like partitioning tool for GPT disks
URL : http://www.rodsbooks.com/gdisk/
License : GPLv2
Description : An fdisk-like partitioning tool for GPT disks. GPT fdisk features a
: command-line interface, fairly direct manipulation of partition table
: structures, recovery tools to help you deal with corrupt partition
: tables, and the ability to convert MBR disks to GPT format.
10.x側での確認
10.1側で探してみたところ、どうもepelに存在しているようでした。
epelリポジトリの登録
# dnf install epel-release -y
リポジトリ上からgdiskの検索
# dnf info gdisk
Extra Packages for Enterprise Linux 10 from AlmaLinux - x86_64_v2 2.2 MB/s | 6.0 MB 00:02
Last metadata expiration check: 0:00:01 ago on Thu 30 Apr 2026 11:29:40 AM JST.
Available Packages
Name : gdisk
Version : 1.0.10
Release : 2.el10_0.alma_altarch
Architecture : x86_64_v2
Size : 262 k
Source : gdisk-1.0.10-2.el10_0.alma_altarch.src.rpm
Repository : epel
Summary : An fdisk-like partitioning tool for GPT disks
URL : http://www.rodsbooks.com/gdisk/
License : GPL-2.0-only
Description : An fdisk-like partitioning tool for GPT disks. GPT fdisk features a
: command-line interface, fairly direct manipulation of partition table
: structures, recovery tools to help you deal with corrupt partition
: tables, and the ability to convert MBR disks to GPT format.
gdiskパッケージのインストール
dnf install gdisk -y
インストールの確認
# which gdisk
/sbin/gdisk
# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 1.0.10
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries in memory.
Disk /dev/sdb: 2097152 sectors, 1024.0 MiB
Model: QEMU HARDDISK
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 560C3826-A04A-4903-B53C-3899C98F7581
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 2097118
Partitions will be aligned on 2048-sector boundaries
Total free space is 2097085 sectors (1024.0 MiB)
Number Start (sector) End (sector) Size Code Name
実行できました!以上です!
忙しい人向け
- almalinuxでは10.xからはepel-releaseに行ったみたいです。
- epel-releaseリポジトリを登録してからgdiskをインストールすればOKです。