LinuxÖÐRPMÎļþÒ»Ñùƽ³£´æ·ÅÔÚÄĸöĿ¼Ï£¿
ÎÊÌ⣺LinuxÖÐRPMÎļþÒ»Ñùƽ³£´æ·ÅÔÚÄĸöĿ¼Ï£¿
ÔÚLinuxϵͳÖУ¬RPM£¨Red Hat Package Manager£©ÊÇÒ»ÖÖ³£¼ûµÄÈí¼þ°ü¹ÜÀí¹¤¾ß£¬ÓÃÓÚ×°Öá¢Éý¼¶¡¢Ð¶ÔغÍÅÌÎÊÈí¼þ°ü¡£RPMÎļþͨ³£ÒÔ.rpmΪÀ©Õ¹Ãû£¬´æ´¢ÔÚϵͳÌض¨µÄĿ¼Ï¡£
ÔÚ´ó´ó¶¼Linux¿¯ÐаæÖУ¬RPMÎļþͨ³£´æ·ÅÔÚ/var/lib/rpmĿ¼Ï¡£Õâ¸öĿ¼°üÀ¨ÁËÓëRPMÏà¹ØµÄÊý¾Ý¿âºÍÔªÊý¾ÝÎļþ¡£ÏÂÃ潫ͨ¹ýÏêϸµÄ´úÂëʾÀýչʾRPMÎļþ´æ·ÅµÄλÖÃÒÔ¼°ÔõÑù»á¼ûÕâЩÎļþ¡£
Ê×ÏÈ£¬·¿ªÖն˲¢ÊäÈëÒÔÏÂÏÂÁîÀÍÆÈ´»ÖÁ/var/lib/rpmĿ¼£º
cd /var/lib/rpm
µÇ¼ºó¸´ÖÆ
È»ºó£¬Ê¹ÓÃlsÏÂÁîÁгö¸ÃĿ¼ÏµÄÎļþÁÐ±í£¬ÈçÏÂËùʾ£º
ls
µÇ¼ºó¸´ÖÆ
ÔÚÕâ¸öĿ¼Ï£¬Äú½«¿´µ½Ò»Ð©ÒÔ.rpmΪÀ©Õ¹ÃûµÄÎļþ£¬ÕâЩÎļþ¾ÍÊÇϵͳÖÐ×°ÖõÄÈí¼þ°üµÄRPMÎļþ¡£Äú¿ÉÒÔʹÓÃrpmÏÂÁîÀ´Éó²éij¸öÌض¨µÄRPMÎļþµÄÏêϸÐÅÏ¢£¬ÀýÈ磺
rpm -qpi package.rpm
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬package.rpmÊÇÄúÒªÉó²éµÄRPMÎļþµÄÃû³Æ¡£
ÁíÍ⣬Äú»¹¿ÉÒÔʹÓÃrpmÏÂÁîÀ´×°ÖÃÒ»¸öRPMÎļþ£¬ÀýÈ磺
rpm -ivh package.rpm
µÇ¼ºó¸´ÖÆ
×¢ÖØ£ºÔÚ²Ù×÷ϵͳÉÏ×°ÖûòжÔØÈí¼þ°üʱ£¬ÇëÈ·±£ÄúÓÐÏìÓ¦µÄȨÏÞ£¬²¢Ð¡ÐIJÙ×÷ÒÔ×èÖ¹Ëð»µÏµÍ³¡£
×ÜÖ®£¬RPMÎļþÒ»Ñùƽ³£´æ·ÅÔÚ/var/lib/rpmĿ¼Ï£¬Í¨¹ýʹÓÃÏÂÁîÐй¤¾ß¿ÉÒÔÇáËÉ»á¼ûºÍÖÎÀíÕâЩÎļþ¡£Ï£ÍûÕâƪÎÄÕ¶ÔÄúÃ÷È·LinuxϵͳÖÐRPMÎļþµÄ´æ·ÅλÖÃÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇLinuxÖÐRPMÎļþÒ»Ñùƽ³£´æ·ÅÔÚÄĸöĿ¼Ï£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡