³ë¹«Çö ´ëÅë·É ¹è³Ê
  ±è¼ºÅÂÀÇ Tech Tips(Linux, PHP, Apache, DBMS, Mobile)
  http://www.supersky.pe.kr  
¾È³çÇϽʴϱî? ±è¼ºÅÂÀÔ´Ï´Ù.
Linux, Apache, PHP, Mysql, Mobile °ü·Ã Tech Tips Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.
 
<<   2024 Nov   >>
S M T W T F S
272829303112
3456789
10111213141516
17181920212223
24252627282930
1858335 723
  
DNS Powered by DNSEver.com
  ++ [Æß] yum (Yellow dog Updater, Modified)ÀÇ È°¿ë ¹× yum mirror server  -  2005/06/26 19:17
1. yum ?

yumÀº rpm±â¹Ý ½Ã½ºÅÛ¿¡¼­ ÀÚµ¿À¸·Î ÆÐÅ°Áö¸¦ ¾÷µ¥ÀÌÆ®, ¼³Ä¡, »èÁ¦¸¦ ÇØÁÖ´Â À¯Æ¿¸®Æ¼ÀÔ´Ï´Ù.
rpmÀÇ ÀÇÁ¸¼º ¹®Á¦¸¦ ÀÚµ¿ÀûÀ¸·Î ó¸®ÇÏ¿© ½±°Ô ÆÐÅ°Áö¸¦ À¯Áö °ü¸®ÇÒ ¼ö ÀÖ½À´Ï´Ù.
¶ÇÇÑ ½±°Ô ·¹µåÇÞÀÇ releaseµµ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù.
fedora project¿¡´Â ±âº»ÀûÀ¸·Î ³»ÀåµÇ¾î ÀÖ½À´Ï´Ù :)

ÇöÀç ·¹µåÇÞÀº updates.redhat.comµî¿¡¼­
RHEL°ú Fedora Project¸¦ Á¦¿ÜÇÏ°í RedHatÀÇ ¸ðµç ¹öÀüÀÇ ¾÷µ¥ÀÌÆ®°¡ ÁßÁöµÇ°í ÀÖ´Ù.
(RedHat 7.3Àº 2003³â 12¿ù ¸»ºÎÅÍ, RedHat 9´Â 2004³â 4¿ùºÎ·Î °ø½ÄÁö¿øÀÌ ÁߴܵÊ)

RHNÀº ȸ¿ø°¡ÀÔÀÇ ¹ø°Å·Î¿ò°ú ±â´ÉÀÇ ´Ü¼øÇÔ, ¸·´ëÇÑ ºñ¿ë¿¡ ´ëÇÑ ºÎ´ãÀ¸·Î ½ÇÁõÀ» ´À³¢¼Ì´Ù¸é
yumÀ» ÀÌ¿ëÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.


1-1. ¼³Ä¡
http://linux.duke.edu/projects/yum/download.ptml
¿¡¼­ ÀÚ½ÅÀÇ release¿¡ ¸Â´Â yumÀ» ¼³Ä¡ÇÑ´Ù.

1-2. ±âº» »ç¿ë¹ý
ÃֽŠÆÐÅ°Áö·Î ¾÷µ¥ÀÌÆ®
# yum update

ÆÐÅ°Áö ¼³Ä¡
# yum install ÆÐÅ°Áö¸í

ÆÐÅ°Áö ¾÷µ¥ÀÌÆ®
# yum update ÆÐÅ°Áö¸í

ÆÐÅ°Áö »èÁ¦
# yum remove ÆÐÅ°Áö¸í

1-3. yumÀ» ÀÌ¿ëÇÑ ·¹µåÇÞ release update

ftp://ftp.quicknet.nl/pub/Linux/ftp.redhat.com/
¿¡¼­ ¾÷±×·¹À̵å ÇÏ°í ½ÍÀº ¹öÀüÀÇ redhat-release***.rpmÀ» ¹Þ¾Æ¼­ ¼³Ä¡

# yum upgrade


ÀÚ¼¼ÇÑ ÀÌ¿ë¹ýÀº
http://www.linux.duke.edu/projects/yum
http://wiki.kldp.org/wiki.php/Yum-HOWTO ¿¡¼­ ÂüÁ¶Çϼ¼¿ä..


2. yum mirror ±¸ÃàÇϱâ

2-1. yum mirror ¼­¹ö
yum mirror¸¦ ±¸ÃàÇϱâ À§Çؼ­´Â ÃæºÐÇÑ ³×Æ®¿öÅ© ´ë¿ªÆø°ú µð½ºÅ© ¿ë·®À» È®º¸ÇÏ°í ÀÖ¾î¾ß ÇÑ´Ù.
´ÙÀ½Àº rootda.orgÀÇ /etc/crontabÀÇ ÀϺκÐÀÌ´Ù.

# fedoralegacy.org mirror update RedHat Linux
01 20 * * * root /root/bin/yum/redhat7.3.sh
30 1 * * * root /root/bin/yum/redhat9.sh
40 7 * * * root /root/bin/yum/redhat8.0.sh
38 8 * * * root /root/bin/yum/redhat7.2.sh

# centos mirror update
#05 22 * * * root /root/bin/yum/centos.sh

# KERNEL v2.4 Mirroring
01 6 * * * root /root/bin/kernel.sh

À̻󿡼­ º¸µíÀÌ ÃæºÐÇÑ ³×Æ®¿öÅ© ´ë¿ªÆøÀ» È®º¸ÇÏ°í ÀÖ´Â rootda.org ¼­¹ö¿¡¼­µµ ¹Þ¾Æ¿À´Â sourceÃøÀÇ ´ë¿ªÆø
À» °¨¾ÈÇÏ¿© ÃæºÐÇÑ ½Ã°£Â÷¸¦ µÎ°í ¹Ì·¯¸µÀ» ÇÏ°í ÀÖ´Ù.

´ÙÀ½Àº ÇØ´ç ½ºÅ©¸³Æ®ÀÇ ³»¿ëÀÌ´Ù.
[root@mirror yum]# cat redhat7.2.sh
#!/bin/sh
cd /data5/yum_mirror; wget -nH -r -N -nr -l0 -m -np -X /7.2 -X /8.0 -X /9 --cache=off
http://download.fedoralegacy.org/redhat/7.2/

[root@mirror yum]# cat redhat7.3.sh
#!/bin/sh
cd /data5/yum_mirror; wget -nH -r -N -nr -l0 -m -np -X /7.2 -X /8.0 -X /9 --cache=off
http://download.fedoralegacy.org/redhat/7.3/

[root@mirror yum]# cat redhat8.0.sh
#!/bin/sh
cd /data5/yum_mirror; wget -nH -r -N -nr -l0 -m -np -X /7.2 -X /8.0 -X /9 --cache=off
http://download.fedoralegacy.org/redhat/8.0/

[root@mirror yum]# cat redhat9.sh
#!/bin/sh
cd /data5/yum_mirror; wget -nH -r -N -nr -l0 -m -np -X /7.2 -X /8.0 -X /9 --cache=off
http://download.fedoralegacy.org/redhat/9/; find /dedi/yum_mirror/redhat -name "index.*" -exec rm -f
{} \;

[root@mirror yum]# cat centos.sh
#!/bin/sh
cd /data5/yum_mirror; wget -nH -r -N -nr -l0 -m -np -X --cache=off http://caos.oregonstate.edu/centos-
3/3.3/; find /dedi/yum_mirror/centos-3 -name "index.*" -exec rm -f {} \;

[root@mirror yum]# cat /root/bin/kernel.sh
#!/bin/sh
cd /home/KERNEL; wget -nH -r -N -nr -l0 -m -np --cache=off
http://www.kernel.org/pub/linux/kernel/v2.4/; find /home/KERNEL -name "index.*" -exec rm -f {} \;
chown -R rootdaorg.rootdaorg /home/KERNEL

ÀÌ»ó°ú °°Àº ½ºÅ©¸³Æ®¸¦ ½É¾îµÎ°í Å×½ºÆ®¸¦ ÇÑ´Ù.(Å×½ºÆ®´Â ¸¶Áö¸·¿¡ Çϼ¼¿ä ^^;;)

´ÙÀ½À¸·Î Áß¿äÇÑ ºÎºÐÀº apache µ¥¸ó ¼³Á¤ÀÌ´Ù.
httpd.confÀÇ Áß¿äÇÑ ¸î ºÎºÐÀÌ´Ù.
DocumentRoot "/data5/yum_mirror"
Directory "/data5/yum_mirror"
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Directory

ÀÌ»ó°ú °°Àº ¼³Á¤À» ¸¶Ä¡¸é yum mirror ¼­¹ö·Î¼­ ÀÛµ¿ÀÌ °¡´ÉÇÏ´Ù.

2-2. yum client
´ÙÀ½Àº mirror.rootda.org ¸¦ ÀÌ¿ëÇÑ Å¬¶óÀ̾ðÆ®ÀÇ yum.conf È­ÀÏÀÌ´Ù.
[root@mirror yum]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
#exactarch=1
#exclude=kernel*

[base]
name=Red Hat Linux 7.3 base
baseurl=http://mirror.rootda.org/redhat/7.3/os/i386/


[updates]
name=Red Hat Linux 7.3 updates
baseurl=http://mirror.rootda.org/redhat/7.3/updates/i386/

¾ÈŸ±õ°Ôµµ fedoralegacy.org¿¡¼­´Â ´õ ÀÌ»ó redhat 7.2, redhat 8.0¿¡ ´ëÇÑ Áö¿øÀ» ºÒ°¡´ÉÇÏ´Ù°í ÇÕ´Ï´Ù.
yum.conf ¼öÁ¤ÀÌ ºÒÆíÇϽôٸé redhat7.2, 7.3, 8.0, 9.0¿¡ ¼öÁ¤µÈ yum.conf·Î ºôµåµÈ yum rpmÀ» ´Ù¿î·ÎµåÇϼÅ
¼­ »ç¿ëÇϽñ⠹ٶø´Ï´Ù.

ÀÚ¼¼ÇÑ ¹®ÀÇ´Â rootda.org QnA ¼½¼ÇÀ» ÀÌ¿ëÇϽñ⠹ٶø´Ï´Ù.






      << prev     1 ...  141  142  143  144  145  146  147  148  149 ...  163     next >>