[root@gpu2 ~]# mkdir /kit
[root@gpu2 ~]# mkdir /kit/iso
[root@gpu2 ~]# mkdir /kit/dvd
[root@gpu2 ~]# mv /home/hoge/AlmaLinux-9.1-x86_64-dvd.iso /kit/iso/
[root@gpu2 ~]#
[root@gpu2 ~]# vi /etc/yum.repos.d/dvd.repo
[root@gpu2 ~]# cat /etc/yum.repos.d/dvd.repo
[InstallMedia-BaseOS]
name=AlmaLinux 9 – BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///kit/dvd/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
[InstallMedia-AppStream]
name=AlmaLinux 9 – AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///kit/dvd/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
[root@gpu2 ~]#
[root@gpu2 ~]# vi /etc/fstab
[root@gpu2 ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu Apr 27 01:27:09 2023
#
# Accessible filesystems, by reference, are maintained under ‘/dev/disk/’.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run ‘systemctl daemon-reload’ to update systemd
# units generated from this file.
#
UUID=efe6299e-70fd-4a8f-ae3e-10134cdc17d0 / xfs defaults 0 0
UUID=03cc3d9e-8b34-42e4-81ce-7f5a8cfe633c /boot xfs defaults 0 0
UUID=35522ad0-d2cf-4a3d-b23c-9161372ba7ac none swap defaults 0 0
/kit/iso/AlmaLinux-9.1-x86_64-dvd.iso /kit/dvd iso9660 defaults 0 0
[root@gpu2 ~]#
[root@gpu2 ~]# mount -a
mount: /kit/dvd: 警告: ソースは書き込み禁止です、読み込み専用でマウントします.
[root@gpu2 ~]#
[root@gpu2 ~]# dnf clean all
0 ファイルが削除されました
[root@gpu2 ~]#
[root@gpu2 ~]# dnf list –disablerepo=\* –enablerepo=InstallMedia-*
AlmaLinux 9 – BaseOS 98 MB/s | 1.9 MB 00:00
AlmaLinux 9 – AppStream 106 MB/s | 6.5 MB 00:00
メタデータの期限切れの最終確認: 0:00:01 時間前の 2023年04月26日 21時54分20秒 に実施しました。
インストール済みパッケージ
NetworkManager.x86_64 1:1.40.0-1.el9 @anaconda
NetworkManager-libnm.x86_64 1:1.40.0-1.el9 @anaconda
NetworkManager-team.x86_64 1:1.40.0-1.el9 @anaconda
NetworkManager-tui.x86_64 1:1.40.0-1.el9 @anaconda
acl.x86_64 2.3.1-3.el9 @anaconda
almalinux-gpg-keys.x86_64 9.1-1.9.el9 @anaconda
almalinux-release.x86_64 9.1-1.9.el9 @anaconda
:
zziplib.i686 0.13.71-9.el9 InstallMedia-AppStream
zziplib.x86_64 0.13.71-9.el9 InstallMedia-AppStream
zziplib-utils.x86_64 0.13.71-9.el9 InstallMedia-AppStream
[root@gpu2 ~]#