Linux ƽ̨ÉϵÄÈí¼þ°ü¹ÜÀí
¼¶±ð£º ³õ¼¶
½ Ò»·«
(jiangyif@cn.ibm.com
), Èí¼þ¹¤³Ìʦ , IBM
·¶ ÓñÕä
, ¸ß¼¶Èí¼þ¹¤³Ìʦ, IBM
Ëï ÔÃ
, Èí¼þ¹¤³Ìʦ, IBM
2009 Äê 10 ÔÂ 22 ÈÕ
°²
×°£¬Éý¼¶ºÍжÔØÓ¦ÓÃÈí¼þÊÇÓ°ÏìÓû§¶Ô²Ù×÷ϵͳÆÀ¼ÛµÄ¾ö¶¨ÐÔÒòËØÖ®Ò»¡£¶ÔÓÚÈÕ½¥Á÷ÐÐµÄ GNU/Linux
²Ù×÷ϵͳ£¬ÓµÓмò½àÇ¿´óµÄÈí¼þ°ü¹ÜÀí»úÖƹ¦²»¿Éû¡£±¾ÎÄ´Ó»ù±¾µÄ rpm/dpkg ÃüÁîÐгö·¢£¬ÒÔ RHEL ºÍ UBUNTU ΪÀý£¬½éÉܵäÐÍ
Linux ϵͳÖÐÓ¦ÓÃÈí¼þµÄ¹ÜÀíºÍʹÓá£
RPM/DPKG Á½´óÕóÓª¼ò½é
ÔÚ
GNU/Linux( ÒÔϼò³Æ Linux) ²Ù×÷ϵͳÖУ¬RPM ºÍ DPKG Ϊ×î³£¼ûµÄÁ½ÀàÈí¼þ°ü¹ÜÀí¹¤¾ß£¬ËûÃÇ·Ö±ðÓ¦ÓÃÓÚ»ùÓÚ RPM
Èí¼þ°üµÄ Linux ·¢Ðа汾ºÍ DEB Èí¼þ°üµÄ Linux
·¢Ðа汾¡£Èí¼þ°ü¹ÜÀí¹¤¾ßµÄ×÷ÓÃÊÇÌṩÔÚ²Ù×÷ϵͳÖа²×°£¬Éý¼¶£¬Ð¶ÔØÐèÒªµÄÈí¼þµÄ·½·¨£¬²¢Ìṩ¶ÔϵͳÖÐËùÓÐÈí¼þ״̬ÐÅÏ¢µÄ²éѯ¡£
RPM
È«³ÆΪ Redhat Package Manager£¬×îÔçÓÉ Red Hat ¹«Ë¾Öƶ¨ÊµÊ©£¬Ëæºó±» GNU ¿ªÔ´²Ù×÷ϵͳ½ÓÊܲ¢³ÉΪºÜ¶à
Linux ϵͳ (RHEL) µÄ¼È¶¨Èí¼þ±ê×¼¡£Óë RPM ½øÐоºÕùµÄÊÇ»ùÓÚ Debian ²Ù×÷ϵͳ (UBUNTU) µÄ DEB
Èí¼þ°ü¹ÜÀí¹¤¾ß£ DPKG£¬È«³ÆΪ Debian Package£¬¹¦ÄÜ·½ÃæÓë RPM ÏàËÆ¡£¶þÕßÖ®¾ßÌå±È½Ï²»ÔÚ±¾ÎÄ·¶Î§Ö®ÄÚ¡£
»ØÒ³Ê×
RPM °üµÄ°²×° / Éý¼¶ / ²éѯ / жÔØ
Ò»
¸ö RPM °ü°üº¬ÁËÒÑѹËõµÄÈí¼þÎļþ¼¯ÒÔ¼°¸ÃÈí¼þµÄÄÚÈÝÐÅÏ¢£¨ÔÚÍ·ÎļþÖб£´æ£©£¬Í¨³£±íÏÖΪÒÔ .rpm À©Õ¹Ãû½áβµÄÎļþ£¬ÀýÈç
package.rpm ¡£¶ÔÆä²Ù×÷£¬ÐèҪʹÓà rpm ÃüÁî¡£ÏÂÃæ½éÉÜ rpm ¹¤¾ßµÄ²ÎÊýºÍʹÓ÷½·¨£¬²¢ÒÔ IBM Lotus Notes ÔÚ
RHEL 5.2 °²×°ÎªÀý×ö¾ßÌå˵Ã÷¡£
RPM ÃüÁî³£ÓòÎÊý
RPM µÄ³£¹æʹÓ÷½·¨Îª rpm -? package.rpm£¬ÆäÖÐ -? Ϊ²Ù×÷²ÎÊý ( ¸ü¶àÐÅÏ¢£¬Çë²éÔÄ°ïÖú $man rpm)£º
-q ÔÚϵͳÖвéѯÈí¼þ»ò²éѯָ¶¨ rpm °üµÄÄÚÈÝÐÅÏ¢
-i ÔÚϵͳÖа²×°Èí¼þ
-U ÔÚϵͳÖÐÉý¼¶Èí¼þ
-e ÔÚϵͳÖÐжÔØÈí¼þ
-h Óà #(hash) ·ûÏÔʾ rpm °²×°¹ý³Ì
-v ÏêÊö°²×°¹ý³Ì
-p ±íÃ÷¶Ô RPM °ü½øÐвéѯ£¬Í¨³£ºÍÆäËü²ÎÊýͬʱʹÓã¬È磺
-qlp ²éѯij¸ö RPM °üÖеÄËùÓÐÎļþÁбí
-qip ²éѯij¸ö RPM °üµÄÄÚÈÝÐÅÏ¢
RPM ÃüÁî²ÎÊýʹÓ÷½·¨
ÒÔÉϲÎÊýÓÐЩÐèÒª×éºÏʹÓ㬱ÈÈç˵ rpm -h package.rpm ÊÇûÓÐÒâÒåµÄ£¬µ« rpm -ih
package.rpm ¼´±íʾ°²×° package ²¢Óà # ·ûÏÔʾ°²×°½ø¶È¡£
°²×° RPM °ü
# rpm -ivh package.rpm
Éý¼¶ RPM °üÃüÁî
# rpm -Uvh package.rpm
жÔØ RPM °üÃüÁî
# rpm -ev package
²éѯ RPM °üÖаüº¬µ
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
±¾ÎļòÒª½éÉÜÁËJNIµ÷Óù淶£¬¼°³£Óú¯Êý¡£²¢Í¨¹ý¾ßÌåʾÀý³ÌÐòչʾÁËʵÏÖÒ»¸ö±¾µØµ÷ÓõĻù±¾²½Öè¡£
ÒýÑÔ
Java
µÄ³öÏÖ¸ø´ó¼Ò¿ª·¢´øÀ´µÄ¼«´óµÄ·½±ã¡£µ«ÊÇ£¬Èç¹ûÎÒÃÇÓдóÁ¿ÔÓеľ¹ý¹ã·º²âÊԵķÇJava´úÂ룬½«ËüÃÇÈ«²¿ÓÃJavaÀ´ÖØд£¬¿ÖÅ»á´øÀ´¾Þ´óµÄ¹¤×÷Á¿ºÍ³¤
ÆڵIJâÊÔ£»Èç¹ûÎÒÃǵÄÓ¦ÓÃÖÐÐèÒª·ÃÎʵ½Ìض¨µÄÉ豸£¬ÉõÖÁÊǽ ......
×î½üÔÚ寫Driver時£¬³£³£Óöµ½ÐèÒª¡¸µÈ´ýÒ»¶Î時間¡¹ÔÙ處ÀíµÄ動×÷£¬ÒÔÍùÎÒ¶¼ÉµÉµµÄÓÃmsleep()»òmdelay()£¬Êâ²»Öª這種busy waiting會holdסcpu資Ô´£¬ÔÚ這¶ÎÆÚ間內¶¼無·¨讓給ÆäËûprocess執ÐУ¬時間¶Ì(10msÒ ......
ת×Ôhttp://blog.chinaunix.net/u/30619/showart.php?id=249558
1 linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅÏµÍ ......
Linux¹Ø»úÃüÁîÏê½â
±¾Îijö×Ô:LinuxAid.com.cn ×÷Õß: sword_martin (2002-01-30 21:03:06)
ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼
¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£
ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî ......