OS ์„ค์น˜ DVD ๋˜๋Š” ISO ํŒŒ์ผ์„ Repository์— ๋“ฑ๋กํ•˜๋Š” ๋ฐฉ๋ฒ•

  1. DVD ๋˜๋Š” ISO ํŒŒ์ผ ๋งˆ์šดํŠธ

    • DVD
      $ sudo mount /dev/sr0 /mnt

    • ISO ํŒŒ์ผ

      $ sudo mount -t iso9660 -o loop rhel-server-7.9-x86_64-dvd.iso /mnt

      ย 

  2. ์„ค์น˜ DVD ๋˜๋Š” ISO Repository ์ƒ์„ฑ

    1. /etc/yum.repos.d/media.repo ํŒŒ์ผ ์ƒ์„ฑ ํ›„ ๋‹ค์Œ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค. media.repo์˜ media๋Š” ์ž„์˜๋กœ ์ ์šฉ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

      $ sudo vi /etc/yum.repos.d/media.repo [media] name=DVD_ISO # Packages ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์žˆ๋Š” ๊ณณ์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. RHEL์˜ ๊ฒฝ์šฐ๋Š” ์œ„ 1๊ณผ ๊ฐ™์ด ์‹คํ–‰ํ•˜์˜€์„ ๊ฒฝ์šฐ /mnt์ž…๋‹ˆ๋‹ค. baseurl=file:///mnt enable=1 gpgcheck=0

      ย 

    2. Repository ๋ชฉ๋ก์„ ๋‹ค์‹œ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

      $ sudo yum repolist Loaded plugins: langpacks, product-id, search-disabled-repos repo id repo name status epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,734 media DVD_ISO 5,230 repolist: 18,964

ย