yum ์œผ๋กœ ์†Œ์Šค(source) rpm ๋‹ค์šด๋กœ๋“œ ๋ฐ›๊ธฐ

yumdownloader ๋ช…๋ น์–ด๋กœย ์†Œ์Šค rpm ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๋Š” ๋ฒ•


  1. yumdownloader ๊ฐ€ ํฌํ•จ๋œย yum-utils ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•œ๋‹ค.

    yum install yum-utils
  2. /etc/yum.repos.d/rhel-src.repo ์— ์†Œ์Šค rpm ์ด ์žˆ๋Š” repository ์ •๋ณด๋ฅผ ์„ค์ •ํ•œ๋‹ค. (RHEL 6Server ๊ธฐ์ค€)

    [rhel-src]
    name=Red Hat Enterprise Linux $releasever - $basearch - Source
    baseurl=http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
  3. yum repolist ๋ช…๋ น์œผ๋กœ rhel-src ๊ฐ€ ๋ณด์ด๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.

    $ yum repolist
    
    Loaded plugins: downloadonly, security
    repo id              repo name                                                  status
    rhel-src             Red Hat Enterprise Linux 6 - x86_64 - Source                5,853
  4. yumdownloader ๋ช…๋ น์–ด์— --source ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•˜๊ณ  ํŒจํ‚ค์ง€๋ช…์„ ๊ธฐ์ˆ ํ•˜๋ฉด ์†Œ์Šค rpm์„ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋‹ค. ๋‹ค์Œ์€ mysql ์˜ ์†Œ์Šค rpm ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๋Š” ์˜ˆ์ œ์ด๋‹ค..

     yumdownloader --source mysql


๊ฐ™์ด ๋ณด๊ธฐ