yum ์ผ๋ก ์์ค(source) rpm ๋ค์ด๋ก๋ ๋ฐ๊ธฐ
yumdownloader ๋ช ๋ น์ด๋กย ์์ค rpm ์ ๋ค์ด๋ก๋ ๋ฐ๋ ๋ฒ
yumdownloader ๊ฐ ํฌํจ๋ย yum-utils ํจํค์ง๋ฅผ ์ค์นํ๋ค.
yum install yum-utils
/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
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
yumdownloader ๋ช ๋ น์ด์ --source ์ต์ ์ ์ถ๊ฐํ๊ณ ํจํค์ง๋ช ์ ๊ธฐ์ ํ๋ฉด ์์ค rpm์ ์ค์นํ ์ ์๋ค. ๋ค์์ mysql ์ ์์ค rpm ์ ๋ค์ด๋ก๋ ๋ฐ๋ ์์ ์ด๋ค..
yumdownloader --source mysql