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

ÓÃAPTά»¤Red Hat Enterprise Linux

·¢²¼Ê±¼ä:2006-03-14 00:38:28À´Ô´:ºìÁª×÷Õß:8g
ÒýÓÃ:
ÄÚÈÝÕªÒª ÈçºÎÓÃAPT(Advanced Packaging Tool)ά»¤Red Hat Enterprise Linux (RHEL)£¬Ìṩ¶Ô¸ö±ðRHELµÄÓû§ÎÞ·¨Éý¼¶µÄÎÊÌâµÄ½â¾ö°ì·¨¡£¹Ø¼ü´Ê£ºAPT,Linux£¬Éý¼¶£¬Red Hat Enterprise Linux£¬RHEL£¬YUM£¬RPM£¬ÒÀÀµÐÔ


¼¸¾äÇ°ÑÔ
Linuxϵͳά»¤ÖÐÁî¹ÜÀíÔ±ºÜÍ·Ì۵ľÍÊÇÈí¼þ°üÖ®¼äµÄÒÀÀµÐÔÁË£¬ÍùÍùÊÇÄãÒª°²×°AÈí¼þ£¬µ«ÊDZàÒëµÄʱºò¸æËßÄãXÈí¼þ°²×°Ö®Ç°ÐèÒªBÈí¼þ£¬¶øµ±Äã°²×°YÈí¼þµÄʱºò£¬ÓÖ¸æËßÄãÐèÒªZ¿âÁË--ºÃ²»ÈÝÒ×°²×°ºÃZ¿â£¬·¢ÏÖ°æ±¾»¹ÓÐÎÊÌâ......¿ÉÄܺܶàÅóÓѶ¼ÓйýÕâ¸ö¾­Àú¡£Æäʵ¿ªÔ´ÉçÇøÔç¾Í¶ÔÕâ¸öÎÊÌâ³¢ÊÔ½øÐнâ¾öÁË£¬²»Í¬µÄ·¢ÐаæÍƳöÁ˸÷×ԵŤ¾ß£¬±ÈÈçYellow DogµÄYUM ,DebianµÄAPT(Advanced Packaging Tool)µÈ¡£¶øÕâЩÈí¼þÒ²±»¿ªÔ´Èí¼þ°®ºÃÕßÃÇÖð½¥ÒÆÖ²µ½±ðµÄ·¢ÐаæÉÏ¡£

RedhatÆóÒµ°æLinuxµÄµÄÉý¼¶ÍùÍù¸ø¹ÜÀíÔ±ÃÇ´øÀ´²»ÉÙÎÊÌ⣺ÍøÕ¾ÏÂÔØËÙ¶ÈÌ«Âý£¬²»¹»°²È«£¬µ±È»ÁË£¬¸ü¶àµÄÈËÊÇÎÞ·¨¸üеÄ--°æȨÎÊÌâ¡£¾­¹ýÒ»¶Îʱ¼äµÄ±È½Ï £¬¸Ð¾õʹÓÃAPTά»¤RHELÓÐ×ÅÌØÊâµÄ±ãÀûÐÔ¡£ (ÓеÄÅóÓÑ¿ÉÄÜ»á˵£¬yum Ò²²»´í°¢£¡Êǵģ¬yumÔںܶàʱºò±íÏÖµÄÈ·²»´í£¬²»¹ýÈç¹ûʹÓõÄLinuxÊÇRHELµÄ»°,ºÜÄÑÕÒµ½ÊʺÏyumµÄ×ÊÁϿ⣬"Çɸ¾ÄÑΪÎÞÃ×Ö®´¶"¡£) ÏÖÔڰѾßÌå·½·¨½éÉܸø´ó¼Ò×÷Ϊ²Î¿¼¡£

APT»ù±¾½éÉÜ
Debian GNU/Linux ÊÇAPTµÄµÞÔìÕß¡£³õÖÔÊÇÀûÓù¤¾ßÀ´½â¾öÈí¼þ°²×°Ê±ºòµÄÒÀÀµÐÔÎÊÌâ¡£Æ乤×÷Ô­Àí´óÖÂΪ£ºÓû§°²×°APT¿Í»§¶Ë¹¤¾ß£¬²éÑ°APT·þÎñÆ÷¶ËµÄ×ÊÁϿ⣨repositories£©ÉϵÄRPMÈí¼þ°üÐÅÏ¢£¬²¢·ÖÎöÈí¼þ°üÖ®¼äµÄÒÀÀµÐÔÈ»ºóÏÂÔز¢½øÐа²×°¡£

°²×°ÓëÅäÖÃ
Ê×ÏÈÈÃÎÒÃÇ°²×°APT¹¤¾ß:

# wget http://redhat.uni-klu.ac.at/el3/apt.i386.rpm
# rpm -Uvh apt.i386.rpm
°²×°¹»¼òµ¥°É? ÎÒÃÇÒª±à¼­ÅäÖÃÎļþ£º
#vi /etc/apt/sources.list.d/dag.list
Ìí¼ÓÈçÏÂÄÚÈÝ£¨×ÊÁÏ¿âÏà¹ØµÄÐÅÏ¢£©:
rpm http://afs.caspur.it/ afs/italia/project/linux/cern/slc302/i386/apt os updates extras
rpm http://redhat.uni-klu.ac.at redhat/dag/el3/i386 dag
rpm-src http://redhat.uni-klu.ac.at redhat/dag/el3/i386 dag
rpm http://apt.sw.be redhat/el3/en/i386 dag
rpm-src http://apt.sw.be redhat/el3/en/i386 dag
×¢: µÚÒ»Ìõhttp://afs.caspur.it/ µÄ×ÊÁϿ⼸ºõ¾ÍÊÇRedhat¹Ù·½Õ¾µãµÄÄÚÈÝ¡£ÔÚдÕâƪÎÄÕµÄʱºò»¹ÊÇÓÐЧµÄ¡£Èç¹ûÒª³¢ÊÔ¸üÐÂKernel£¬»¹¿ÉÒÔÔÚµÚÒ»ÌõºóÃæÌí¼Ó¡¡kernel26 .

Èç¹ûÐèÒª¸ü¶àJavaÏà¹ØÈí¼þ£¬Ôò£º
#vi /etc/apt/sources.list.d/jpackage.list
(ÕâÒ»²½ÊÇ¿ÉÑ¡µÄ)Ìí¼ÓÈçÏÂÄÚÈÝ:
rpm http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/i386 free devel
rpm-src http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/i386 free devel
rpm http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/generic free devel
rpm-src http://redhat.uni-klu.ac.at redhat/jpackage/redhat-es-3/generic free devel
Èç¹ûÒª¸üÐÂKDEµÄ»°(ÕâÒ»²½¿ÉÑ¡µÄ):
#vi /etc/apt/sources.list.d/kde.list
¿¼ÂÇÌí¼ÓÈçºÎÄÚÈÝ:
rpm http://apt.kde-redhat.org apt/fedora/3.0 stable
rpm http://apt.kde-redhat.org apt/fedora/all stable
rpm http://apt.kde-redhat.org apt/kde-redhat/3.0 stable unstable
rpm http://apt.kde-redhat.org apt/kde-redhat/all stable unstable
µ±È»£¬ÕâЩÄÚÈÝÊǾ­¹ý±ÊÕßÑéÖ¤µÄ£¬¶¼ÊÇ¿ÉÓõġ£´ÓһЩվµãÉÏÏÂÔصÄlist Ëƺõ¶¼¶à¶àÉÙÉÙÓеãÎÊÌâ¡£
×¢: Èç¹ûÄú·¢ÏÖÉÏÊöµÄ×ÊÁÏ¿âʧЧ»òÕßÊÇÓÐʲô¸üºÃµÄ×ÊÁÏ¿â¡£·³Çë֪ͨÎÒ: DBAnotes@gmail.com .

ʹÓüò½é
ʹÓÃÏà¶ÔÀ´Ëµ±È½Ï¼òµ¥:

#apt-get update
#apt-get upgrade
#apt-get check //¼ì²éÒÀÀµÐÔ
#apt-get -f install // ½â¾öÒÀÀµÐÔÎÊÌâ
Èç¹ûÒª°²×°Ä³¹¤¾ß£¬±ÈÈç˵iftop,¿ÉÒÔÕâÑù:
#apt-cache search iftop
#apt-get install iftop
apt×Ô¶¯½â¾öÒÀÀµÐÔÎÊÌ⣬·½±ãµÃºÜ¡£
ҪעÒâµÄÊÇÐèÒªµ¼ÈëÏàÓ¦×ÊÁÏ¿âµÄÇ©Ãû¡£ÔÚÏà¹ØÕ¾µãÏÂÔØGPG keyÖ®ºó£¬ÓÃÈçÏÂÃüÁîµ¼Èë¼´¿É:

#rpm --import TheKey_youDownload
Èç¹ûÓÐÄÍÐÄ¿´µ½ÕâÀïµÄ»°£¬¿ÉÒÔ·¢ÏÖµÁ°æµÄÓû§»òÕßÊÇÓÃRHEL½øÐвâÊÔµÄÅóÓÑ¿ÉÒÔͨ¹ýÕâ¸ö½øÐÐÉý¼¶ÁË--Òª²»È»RHELµÄup2date ×ÜÊÇÒªÄãÊäÈëÈÏÖ¤ÐÅÏ¢µÄ¡£

²Î¿¼ÐÅÏ¢


APT-howto - http://www.debian.org/doc/manuals/apt-howto/index.en.html

ÆäËû°æ±¾µÄAPTʹÓÃÎÊÌâºÍһЩʹÓü¼ÇÉÇë²Î¿¼ÕâÀ

http://dag.wieers.com/home-made/apt/FAQ.php
http://www2.uni-klu.ac.at/support/Redhat
http://linuxwiki.de/apt/RedHat

=============

±¾ÎÄ×÷Õß
Fenng£¬Ä³ÃÀ×ʹ«Ë¾DBA£¬ÒµÓàʱ¼ä»ì¼£ÓÚ¸÷Êý¾Ý¿âÏà¹ØµÄ¼¼ÊõÂÛ̳ÇÒÀִ˲»Æ£¡£Ä¿Ç°¹Ø×¢ÈçºÎÀûÓÃORACLEÊý¾Ý¿âÓÐЧµØ¹¹½¨ÆóÒµÓ¦Ó᣶ÔOracle tuning¡¢troubleshootingÓÐÒ»µãÑо¿¡£
¸öÈ˼¼ÊõÕ¾µã:http://www.dbanotes.net/ ¡£¿ÉÒÔͨ¹ýµç×ÓÓʼþ dbanotes@gmail.com ÁªÏµµ½Ëû¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ