ºìÁªLinuxÃÅ»§
Linux°ïÖú

¸üÐÂPorts CollectionµÄ¼¸ÖÖ·½·¨

·¢²¼Ê±¼ä:2007-06-11 00:16:48À´Ô´:ºìÁª×÷Õß:Gseain
1,CVSup/csup
×¢Òâ: csup ÊÇÓà C ÓïÑÔ¶Ô CVSup Èí¼þµÄÖØд£¬ ÔÚ FreeBSD 6.2 ºÍ¸ü¸ß°æ±¾ÖУ¬×÷ΪϵͳµÄÒ»²¿·ÖÌṩ¡£
ÔÚÊ×´ÎÔËÐÐ CVSup ֮ǰ£¬ Îñ±ØÈ·ÈÏ /usr/ports Êǿյģ¡ Èç¹ûÄú֮ǰÒѾ­ÓÃÆäËûµØ·½°²×°ÁËÒ»·Ý Ports Ì×¼þ£¬Ôò CVSup ¿ÉÄܲ»»á×Ô¶¯É¾³ýÒѾ­ÔÚÉÏÓηþÎñÆ÷ÉÏɾ³ýµôµÄ²¹¶¡Îļþ¡£
#cp /usr/share/examples/cvsup/ports-supfile ~/
#ee ~/ports-supfile
ÐÞ¸Ä:
¸üÐÂ:
# cvsup -L 2 /root/ports-supfile
»òÕßÓÃcsup
# csup -4 /root/ports-supfile
Ìص㣺ÀÏÅƵĸüз½·¨£¬ÀúÊ·Óƾ㬻¹¿ÉÒÔÓÃÀ´¸üÐÂsource£¬µÚÒ»´ÎËùºÄ·Ñʱ¼ä±È½Ï³¤£¬´ó¸ÅҪʮ¼¸·ÖÖÓ.ÒÔºóÈç¹û¼°Ê±¸üÐÂ(±ÈÈçÔÚcronÀïÉèÖÃÿСʱͬ²½Ò»´Î),´ó¸ÅÖ»ÐèÒª2·ÖÖÓ×óÓÒ.
2.ÏÂÔØports.tar.gzºó½âѹËõ
#tar -zxvf ports.tar.gz -C /usr/
Ìص㣺ҲÊÇÀÏÅƵķ½·¨,±ÈµÚÒ»Öз½·¨Òª¿ìЩ£¬²»¹ýÍùÍù²»×îеģ¨Ïà¶ÔÀ´Ëµ£©
ÏÖÔÚports.tar.gz´óСԼΪ37MB£¬ÎÒÓÃ×î¿ìµÄ¾µÏñÏÂÔØÐèÒª:
Downloaded 36.6 megabytes in 3:02 seconds. (205.96 KB/s)
½âѹËõÐèÒª3·Ö20Ãë,ºÏ¼Æ:7·ÖÖÓ×óÓÒ
3.Portsnap
Portsnap ÊÇÁíÒ»ÖÖÓÃÓÚ·¢²¼ Ports Ì×¼þµÄ·½·¨¡£ Ëü×îÔç´Ó FreeBSD 6.0 ¿ªÊ¼ÒýÈë¡£ ÔÚ½ÏÔçµÄϵͳÖУ¬ Äú¿ÉÒÔͨ¹ý ports-mgmt/portsnap package À´°²×°Ëü.
Ê×´ÎÔËÐÐ Portsnap
# portsnap fetch
# portsnap extract
¸üРPorts Tree
# portsnap fetch update
Ð޸ľµÏñÕ¾µã:
Ìص㣺Êǽü¼¸ÄêÐÂÍƳöµÄ·½·¨,Ê×´ÎÏÂÔسߴç´óÔ¼ÊÇ 47 MB£¬ËٶȺܲ»ÀíÏ룬ֻÓÐ20Kb/s×óÓÒ£¬Èç¹ûÄãÿÌì
¼°Ê±¸üеĻ°,ÐèÒªµÄʱ¼ä×î¶Ì£¬Ò»µ«¸üв»¼°Ê±£¬ÀÛ»ýÏÂÀ´¾ÍûÓÐËÙ¶ÈÉϵÄÓÅÊÆÁË.
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ