This system is not registered with an entitlement server. You can use subscription-manager to register. rhel7.9

## check cdrom 

[root@localhost ~]# blkid /dev/mapper/rhel-root: UUID="c8959d98-4669-4520-a9f4-c99120c2219f" TYPE="xfs" /dev/sda2: UUID="dV5G8l-8D8L-9pl2-BQSr-izZh-CAc9-NPt2RP" TYPE="LVM2_member" /dev/sda1: UUID="b4e21b2c-2833-4dd3-aea0-8e9e11f95b4c" TYPE="xfs" /dev/sr0: UUID="2020-09-17-19-35-15-00" LABEL="RHEL-7.9 Server.x86_64" TYPE="iso9660" PTTYPE="dos" /dev/mapper/rhel-swap: UUID="74935535-3548-4e3a-9a78-acdf8d1f8d65" TYPE="swap" /dev/mapper/rhel-home: UUID="44377496-bac4-4af1-8a53-11045bcd7f84" TYPE="xfs" 
 

## mount cdrom 

[root@localhost ~]# mount /dev/sr0 /dvd mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]#

## mount cdrom 

[root@localhost ~]# mount /dev/sr0 /dvd mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]#
[root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 9.9M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mapper/rhel-root 38G 3.9G 34G 11% / /dev/sda1 1014M 183M 832M 19% /boot /dev/mapper/rhel-home 19G 37M 19G 1% /home tmpfs 379M 48K 379M 1% /run/user/1000 tmpfs 379M 0 379M 0% /run/user/0 /dev/sr0 4.3G 4.3G 0 100% /dvd [root@localhost ~]#

## make repo folder

[root@localhost ~]# mkdir /repo

## copy dvd to repo 

[root@localhost repodata]# cp -av /dvd/* /repo/ `/dvd/EFI' -> `/repo/EFI' `/dvd/EFI/BOOT' -> `/repo/EFI/BOOT' `/dvd/EFI/BOOT/BOOTIA32.EFI' -> `/repo/EFI/BOOT/BOOTIA32.EFI' `/dvd/EFI/BOOT/BOOTX64.EFI' -> `/repo/EFI/BOOT/BOOTX64.EFI' `/dvd/EFI/BOOT/TRANS.TBL' -> `/repo/EFI/BOOT/TRANS.TBL' `/dvd/EFI/BOOT/fonts' -> `/repo/EFI/BOOT/fonts' `/dvd/EFI/BOOT/fonts/TRANS.TBL' -> `/repo/EFI/BOOT/fonts/TRANS.TBL' `/dvd/EFI/BOOT/fonts/unicode.pf2' -> `/repo/EFI/BOOT/fonts/unicode.pf2' `/dvd/EFI/BOOT/grub.cfg' -> `/repo/EFI/BOOT/grub.cfg' `/dvd/EFI/BOOT/grubia32.efi' -> `/repo/EFI/BOOT/grubia32.efi' `/dvd/EFI/BOOT/grubx64.efi' -> `/repo/EFI/BOOT/grubx64.efi' `/dvd/EFI/BOOT/mmia32.efi' -> `/repo/EFI/BOOT/mmia32.efi' `/dvd/EFI/BOOT/mmx64.efi' -> `/repo/EFI/BOOT/mmx64.efi' `/dvd/EULA' -> `/repo/EULA'

## set local.repo 

[root@localhost repodata]# vi /etc/yum.repos.d/local.repo
[local-repo-RHEL7.6] name=Local Repository RHEL7.6 baseurl=file:///repo enabled=1 gpgcheck=0 ~ ~

## yum update 

[root@localhost repodata]# yum clean all Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Cleaning repos: local-repo-RHEL7.6 [root@localhost repodata]# yum update Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. local-repo-RHEL7.6 | 2.8 kB 00:00:00 (1/2): local-repo-RHEL7.6/group | 628 kB 00:00:00 (2/2): local-repo-RHEL7.6/primary | 2.1 MB 00:00:00 local-repo-RHEL7.6 5230/5230 No packages marked for update [root@localhost repodata]#








댓글

이 블로그의 인기 게시물

[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: URL using bad/illegal format or missing URL

starcraft map

Data Analysis with Superset - boardless chart