ʹÓÃlinux rpm ²éѯÈí¼þÀïÃæµÄÏà¹ØÐÔ
ÈçºÎ²éѯrpmÀïµÄÏà¹ØµÄÐÅÏ¢ 1. ²éѯÒѾ°²×°ÔÚlinuxÖеÄÈí¼þÐèҪעÒâµÄ¼¸¸ö²ÎÊý£º
1. ²éѯÒѾ°²×°ÔÚlinuxÖеÄÈí¼þ
ÐèҪעÒâµÄ¼¸¸ö²ÎÊý£º
rpm –qa //²éѯlinuxϵͳÉÏÒѾ°²×°ÁËÄÇЩÈí¼þ £¬´ËʱµÄ²éѯ×îºÃʹÓÃ
rpm –qa |more
rpm –qf filename //¼ì²éÕâ¸öÎļþÊÇÔÚÄǸöÈí¼þÖа²×°µÄ
[root@localhost Server]# rpm -qf /etc/httpd/conf/httpd.conf
httpd-2.2.3-6.el5
rpm –qi package_name //¿ÉÒÔÏÔʾÕâ¸öÈí¼þµÄÏà¹ØÐÅÏ¢ Õâ¸öµØ·½ÊÇÈí¼þÃû³Æ
[root@localhost Server]# rpm -qi httpd
Name : httpd Relocations: (not relocatable)
Version : 2.2.3 Vendor: Red Hat, Inc.
Release : 6.el5 Build Date: 2006Äê11ÔÂ29ÈÕ ÐÇÆÚÈý 19ʱ35·Ö03Ãë
Install Date: 2009Äê04ÔÂ09ÈÕ ÐÇÆÚËÄ 22ʱ45·Ö45Ãë Build Host: hs20-bc2-3.build.redhat.com
Group : System Environment/Daemons Source RPM: httpd-2.2.3-6.el5.src.rpm
Size : 2889883 License: Apache Software License
Signature : DSA/SHA1, 2007Äê01ÔÂ17ÈÕ ÐÇÆÚÈý 23ʱ36·Ö54Ãë, Key ID 5326810137017186
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://httpd.apache.org/
Summary : Apache HTTP ·þÎñÆ÷
Description :
Ïà¹ØÎĵµ£º
1¡¢ µ±°ÑÏîÄ¿ÅäÉÏÓòÃûʱ£¬±ØÐë°ÑtomcatµÄ¶Ë¿Ú¸ÄΪ80£¬×¢Òâµ±Ìæ»»ÅäÖÃÎļþʱ£¬Òª¼ÇµÃ°Ñtomcat¶Ë¿Ú¸Äһϡ£
2¡¢ CÅÌϵÄhostsÎļþ£¬ÊÇÅäÖÃÓòÃûÓõģ¬µ±²»ÔÚhostsÅäÖÃÓòÃûʱ£¬windowsϵͳ»áµ½ÍâÍøÈ¥ÕÒ·ûºÏµÄÓòÃû£¬µ±ÔÚhostsÏÂÅäÖÃÓòÃûʱ£¬¾Í²»»áµ½ÍâÍøÈ¥ÕÒÁË¡£
3¡¢ Îļþ¸üеÄÕû¸öÁ÷³Ì£º
£¨1£©£ºÓÃÔ¶³ ......
¹Ø¼ü´Ê£º Linux ϵͳ¹ÜÀí
1¡¢²é¿´Ä³Îļþ ......
¾Å¡¢Ä£Ê½±äÁ¿
ÔÚGNUµÄmakeÖУ¬»¹Ö§³Öģʽ±äÁ¿£¨Pattern-specific Variable£©£¬Í¨¹ýÉÏÃæµÄÄ¿±ê±äÁ¿ÖУ¬ÎÒÃÇÖªµÀ£¬±äÁ¿¿ÉÒÔ¶¨ÒåÔÚij¸öÄ¿±êÉÏ¡£Ä£Ê½±äÁ¿µÄºÃ´¦¾ÍÊÇ£¬ÎÒÃÇ¿ÉÒÔ¸ø¶¨Ò»Ö֓ģʽ”£¬¿ÉÒ԰ѱäÁ¿¶¨ÒåÔÚ·ûºÏÕâÖÖģʽµÄËùÓÐÄ¿±êÉÏ¡£
ÎÒÃÇÖªµÀ£¬makeµÄ“ģʽ”Ò»°ãÊÇÖÁÉÙº¬ÓÐÒ»¸ö“%&rdquo ......
½ñÌìÍê³ÉÁËǶÈëʽlinuxµÄµÚÒ»¸öÇý¶¯µÄ±àдºÍ²âÊÔ£¬ËäÈ»ÊǸö¼òµ¥µÄ³ÌÐò£¬µ«ÊÇÂéȸËäС£¬ÎåÔà¾ãÈ«£¬Ï£Íû¿ÉÒÔ¸ø¸Õ¿ªÊ¼½Ó´¥Çý¶¯±àдµÄÈËһЩÌáʾ£¬¹²Í¬½ø²½¡£
Ô´´úÂ룺
·ÖÎöÈçÏ£º
ÏÂÃæÊÇÎÒµÄÇý¶¯³ÌÐò£º
#include <linux/config.h>//ÅäÖÃÍ·Îļþ
#include <linux/kernel.h&g ......