linuxϵÄyumÃüÁîÏê½â
yumÊǸÉʲôµÄ(תÔØ http://www.soft6.com/tech/16/166057.html)
¡¡¡¡Ê¹ÓÃredhat£¬fedoraµÄlinuxer¿Ï¶¨¶¼ÎªrpmÖøÃûµÄdependency
hell¶øÍ·ÌÛ(ÕâÒ²ÊÇËùÓлùÓÚrpm·¢Ðа涼ÓеÄÎÊÌâ)¡£foo is needed by bar£¬bar is needed by
foo¡£Òª×°Ð¶¸öÈí¼þ£¬»¹µÃÐÁÐÁ¿à¿àµØÊáÀíÇå³þËùÓÐÒÀÀµÐÔÎÊÌ⣬rpmµÄ¼¸¸öËÑË÷Õ¾µã³ÉÁËʱ³£¹â¹ËµÄ³¡Ëù£¬Èç¹û²»ÐÒÅöµ½Ñ»·ÒÀÀµ£¬ÄǾÍÖ»ÓиɵÉÑ۵ķÖÁË¡£
ÓÐʱ¼Ó¸ö--nodeps²ÎÊý£¬µ¹ÊÇÑÛ²»¼û£¬ÐIJ»·³£¬µ«ÕâÑù×°ÉϵÄÈí¼þ£¬ÄãÄܱ£Ö¤Õý³£Ê¹ÓÃÂð£¬ÕâÑùжÔØÈí¼þ£¬ÄãÄܱ£Ö¤²»Ó°ÏìÆäËüÈí¼þ¹¤×÷Â𣬿ÖÅÂËÒ²²»ÄÜ
¸ø³ö¿Ï¶¨µÄ´ð°¸¡£Ã¿µ½Õâʱ£¬Ã±×ÓÃÇÖ»Óп´×ÅdebianµÄ
apt°µ×ÔÏÛĽÁË¡£ºÃÔÚ£¬ÕâЩ¶¼ÒѾ³ÉΪ¹ýȥʱÁË¡£»ùÓÚrpmµÄ·¢ÐаæÏÖÔÚÒ²ÓÐÁËÏñaptÄÇÑù×Ô
¶¯½â¾öÒÀÀµ¹ØϵµÄ°ü¹ÜÀí¹¤¾ßÁË¡£ÆäÖÐÒ»¸öÖøÃûµÄ¾ÍÊÇapt4rpm,Õâ»ù±¾ÉÏÊÇdebianϵͳaptµÄÔÚrpm·¢ÐаæµÄÒÆÖ²¡£µ«ÊÇʹÓÃRedhatºÍ
FedoraµÄlinuxerÄãÃÇÖªµÀÂ𣬻¹ÓÐÒ»¸öÓëapt¹¦ÄÜÀàËƵÄrpm°ü¹ÜÀíϵͳ£¬ÄǾÍÊÇyum¡£FedoraϵͳÒѾ×Ô´ø£¬RedhatÒ²ÓÐÏàÓ¦
µÄrpmÏÂÔØ¡£ÓëaptÏà±È£¬yumµÄ¹¦ÄÜÒ»µãÒ²²»Èõ£¬ÉõÖÁ»¹ÓÐÐí¶àʤ¹ýapt
Ö®´¦¡£±ÈÈç˵£¬yumÊÇFedoraϵͳ×Ô´øµÄ£¬Òò´ËËüÄÜʹÓÃfedora¹Ù·½µÄÈí¼þÔ´£¬Íê³É¸÷ÖÖ¹Ù·½·¢²¼>µÄ¸÷ÖÖÉý¼¶¡£¶ÔÓÚµÚÈý·½Èí¼þÔ´µÄÖ§
³Ö£¬yumÒ²
²»²î£¬´ó¶àÊýÖ§³ÖaptµÄrepository×¢£¬Ò²ÄÜÖ§³Öyum£¬±ÈÈç˵freshrpms,fedora.us,livnaµÈµÈ¡£´ËÍâyumÓÐÒ»¸ö±È
½Ï ÏêϸµÄlog£¬¿ÉÒԲ鿴ºÎʱÉý¼¶°²×°ÁËʲôÈí¼þ°üµÈ¡£yumµÄ´úÂë½Ïapt¸üΪ¾«¼òµÈ¡£
¡¡¡¡Ò». yumÊÇʲô
¡¡¡¡yum = Yellow dog Updater, ModifiedÖ÷Òª¹¦ÄÜÊǸü·½±ãµÄÌí¼Ó/ɾ³ý/¸üÐÂRPM°ü.ËüÄÜ×Ô¶¯½â¾ö°üµÄÒÐÀµÐÔÎÊÌâ.
¡¡¡¡ËüÄܱãÓÚ¹ÜÀí´óÁ¿ÏµÍ³µÄ¸üÐÂÎÊÌâ
¡¡¡¡×¢:ΪʲôҪʹÓÃyum¶ø²»ÓÃapt,×î¼òµ¥µÄÔÒò,Fedora×Ô´ø
¡¡¡¡¶þ. yumÌصã
¡¡¡¡*¿ÉÒÔͬʱÅäÖöà¸ö×ÊÔ´¿â(Repository)
¡¡¡¡*¼ò½àµÄÅäÖÃÎļþ(/etc/yum.conf)
¡¡¡¡*×Ô¶¯½â¾öÔö¼Ó»òɾ³ýrpm°üʱÓöµ½µÄÒÐÀµÐÔÎÊÌâ
¡¡¡¡*ʹÓ÷½±ã
¡¡¡¡*±£³ÖÓëRPMÊý¾Ý¿âµÄÒ»ÖÂÐÔ
¡¡¡¡Èý. yum°²×°
¡¡¡¡Fedora×Ô´ø
¡¡¡¡#rpm -ivh yum-2.0.4-2.noarch.rpm
¡¡¡¡ËÄ. yumÅäÖÃ
¡¡¡¡
YUMµÄÅäÖÃÎļþ
YUMµÄÒ»ÇÐÅäÖÃÐÅÏ¢¶¼´¢´æÔÚÒ»¸ö½ÐYUM.confµÄÅäÖÃÎļþÖУ¬Í¨³£Î»ÓÚ/etcÄ¿ ¼Ï£¬ÕâÊÇÕû¸öYUMϵͳµÄÖØÖÐÖ®ÖØ£¬ËùÒÔÓбØÒªÏêϸ½éÉÜ¡£ÏÂÃæÊÇÒ»¸ö´ÓÍøÉÏÕÒÀ´µÄYUM.conÎļþ£¬ÈÃÎÒÃÇÒÔ´ËΪÀý£¬½øÐÐ˵Ã÷¡£
1. [main]
2. cachedir=/var/cache/YUM
&n
Ïà¹ØÎĵµ£º
³É¹¦µØ¹ÜÀíÈκÎϵͳµÄ¹Ø¼üÖ®Ò»£¬ÊÇÒªÖªµÀϵͳÖÐÕýÔÚ·¢ÉúʲôÊ¡£Linux ÖÐÌṩÁËÒì³£ÈÕÖ¾£¬²¢ÇÒÈÕÖ¾µÄϸ½ÚÊÇ¿ÉÅäÖõġ£Linux ÈÕÖ¾¶¼ÒÔÃ÷ÎÄÐÎʽ ´æ´¢£¬ËùÒÔÓû§²»ÐèÒªÌØÊâµÄ¹¤¾ß¾Í¿ÉÒÔËÑË÷ºÍÔĶÁËüÃÇ¡£»¹¿ÉÒÔ±àд½Å±¾£¬À´É¨ÃèÕâЩÈÕÖ¾£¬²¢»ùÓÚËüÃǵÄÄÚÈÝÈ¥×Ô¶¯Ö´ÐÐijЩ¹¦ÄÜ¡£Linux ÈÕÖ¾´æ´¢ÔÚ /var/log Ŀ¼ÖС£ÕâÀïÓм¸¸öÓ ......
Èç¹ûϵͳ¹ÜÀíԱϣÍûÌí¼ÓÒ»¸öÓû§ÒÔºó£¬ÈøÃÓû§µÚÒ»´ÎµÇ¼ÒÔºó×Ô¼ºÉèÖÃ×Ô¼ºµÄÃÜÂ룬ÄÇô¾ÍҪʹµÃÓû§µÄ³õʼÃÜÂë»òÕß¿ÕÃÜÂëÁ¢¿Ì¹ýÆÚ£¬Ç¿ÖÆÓû§µÚÒ»´ÎµÇ¼ºóÁ¢¿ÌÐÞ¸ÄÃÜÂë¡£
ΪÁËÇ¿ÖÆÓû§µÚÒ»´ÎµÇ¼ʱÉèÖÃÒ»¸öÐÂÃÜÂ룬Çë°´ÕÕÏÂÃæµÄָʾÀ´×ö£¬µ«ÊÇÐèÒªµÄ×¢ÒâµÄʱºòÈç¹ûÓû§ÊÇͨ¹ýSSHÔ¶³ÌµÇ¼½øÈ¥µÄ£¬ÄÇô¸Ã·½·¨ÊDz»ÄÜÉúЧµÄ ......
LinuxÏà±ÈÓÚWindowsÒ»¸ö±È½ÏºÃµÄµØ·½ÔÚÓÚLinuxÌṩÁ˷dz£·á¸»µÄÔÚÏßÎĵµ£¬¸üÖØÒªµÄÊÇÕâЩ¶¼ÊÇfreeµÄ£¨ÏÂÃæµÄ˵Ã÷ÊÇÕë¶Ôdebian·¢Ðа棬ÆäËûµÄ·¢ÐаæÇé¿ö¿ÉÄÜ»áÓÐËù²»Í¬£©¡£
LinuxµÄÔÚÏßÎĵµ´ó¸Å¿ÉÒÔ·ÖΪÒÔϼ¸Àࣺ
£¨1£©Man¸ñʽµÄÊֲᣬĬÈÏ´æ·ÅÓÚ/usr/share/manĿ¼£¬ÓÃmanÃüÁî²é¿´¡£
£¨2£©Info ¸ñʽµÄÊֲᣬĬÈÏ´æ·Å ......
ÎÄÕÂÀ´Ô´:http://www.ibm.com/developerworks/cn/linux/l-linux-synchronization.html
¼¶±ð£º Öм¶
M. Tim Jones, ¹ËÎʹ¤³Ìʦ, Emulex
2007 Äê 11 ÔÂ 19 ÈÕ
ÔÚѧϰ Linux® µÄ¹ý³ÌÖУ¬ÄúÒ²Ðí½Ó´¥¹ý²¢·¢£¨concurrency£©¡¢ÁÙ½ç¶Î£¨critical section£©ºÍËø¶¨£¬µ«ÊÇÈçºÎÔÚÄÚºËÖÐʹÓÃÕâЩ¸ÅÄîÄØ£¿±¾ÎÄÌÖÂÛÁË 2.6 °æÄÚºËÖÐ ......