Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxϵͳÏÂrpm°üµÄ°²×°¡¢É¾³ý¡¢Ð§Ñé¡¢²éѯ

 µãÆÀ£º°²×°Èí¼þ°ü rpm  -i °üÈ«Ãû ɾ³ý rpm -e name(²»ÊÇ°üÃû) ²ÎÊý -ivh »ñµÃÒ»¸öÏêϸµÄ°²×°½ø³Ì --nodeps ºöÂÔÒÀÀµ¹Øϵ --force Ç¿ÖÆ°²×° -U °üÃû:Éý¼¶°²×° -F ¸üв»¹ÜÊÇʲôֱ½Ó¸²¸Ç --replacepkgsÕâÑù RPM ½«ºöÂԸôíÎóÐÅÏ¢ -vih --repla
ÄÚÈÝÀ´×Ô: ½Å±¾Ö®¼Ò www.jb51.net
°²×°Èí¼þ°ü
rpm  -i °üÈ«Ãû
ɾ³ý
rpm -e name(²»ÊÇ°üÃû)
²ÎÊý
-ivh »ñµÃÒ»¸öÏêϸµÄ°²×°½ø³Ì
--nodeps ºöÂÔÒÀÀµ¹Øϵ
--force Ç¿ÖÆ°²×°
-U °üÃû:Éý¼¶°²×°
-F ¸üв»¹ÜÊÇʲôֱ½Ó¸²¸Ç
--replacepkgsÕâÑù RPM ½«ºöÂԸôíÎóÐÅÏ¢ -vih --replacepkgs
-q name :²éѯ
-qa²éѯËùÓÐÒÑ°²×°µÄRPM
-qi name ²éѯÕâ¸öÈí¼þÏêϸÐÅÏ¢
-ql ÏÔʾÁбí
-qf path  :²éѯһ¸öÎļþÊôÓÚÄĸö°ü
-qp °üÃû :²éÎļþÊÇʲô
-qpl °üÃû :Õë¶ÔÒ»¸öûװ¹ýµÄ°ü
rpm -qc ÅäÖÃÎļþ
 
ЧÑé rpm  -Va
rpm  -Vf /bin/ls
rpm  -Vp °üÃû
5 -- MD5 УÑéºÍ
S -- Îļþ³¤¶È
L -- ·ûºÅÁ´½Ó
T -- ÎļþÐÞ¸ÄÈÕÆÚ
D -- É豸
U -- Óû§
G -- Óû§×é
M -- ģʽ (°üº¬Ðí¿ÉºÍÎļþÀàÐÍ)
? -- ²»¿É¶ÁÎļþ
                                                     
       Ïêϸ¿Î³Ì
ʹÓà RPM
RPM ÓÐÎå¸ö»ù±¾µÄ²Ù×÷ ģʽ(²»°üÀ¨°üµÄ±àÒë): °²×°£¬Ð¶ÔØ£¬Éý¼¶£¬²éѯ£¬Ð£Ñé¡£±¾½Ú½«¶ÔËüÃÇÒ»Ò»½éÉÜ¡£ÒªÁ˽âÍêÕûµÄϸ½ÚºÍÑ¡Ï¿ÉÒÔʹÓà rpm --help, »òתµ½ the section called ÆäËü RPM ×ÊÔ´ µÃµ½¸ü¶à¹ØÓÚ RPM µÄÐÅÏ¢¡£
1 °²×°
µäÐ굀 RPM ÓÐ×ÅÀàËÆ foo-1.0-1.i386.rpmÕâÑùµÄÃû³Æ, ÆäÖÐÖ¸Ã÷ÁË°üÃû (foo), °æ±¾ºÅ (1.0), ·¢ÐкŠ(1), ºÍÓ²¼þƽ̨ (i386)¡£°²×°Ò»¸öÈí¼þ°üÖ»Ðè¼òµ¥µÄ¼üÈëÒÔÏÂÃüÁî:
# rpm -ivh foo-1.0-1.i386.rpm
foo                      ####################################
#
   
 
ÕýÈçÄúËù¿´µ½µÄ, RPM ½«»á´òÓ¡³öÈí¼þ°üµÄÃû×Ö ( ²¢²»Ò»¶¨ÒªÓëÎļþÃûÏàͬ, ¿ÉÄÜÊÇ 1.rpm), ¶


Ïà¹ØÎĵµ£º

linux»ñÈ¡ÎļþµÄ·¾¶Ãû¼°ÆäÎļþÃûµÄ·½·¨

1¡¢¼òµ¥²âÊÔʵÀý
 for i in `find . -type f -name "*.c"`
do
  echo $i
  basename $i    »ñÈ¡*.cÎļþÃû
  dirname $i        »ñÈ¡*.c¶ÔÓ¦µÄĿ¼Ãû
done
2¡¢Êµ¼ÊÓ¦ÓÃ
diff LinuxÔ´Â룬²¢½«Óв»Ò»ÑùµÄÔ´ÂëÕûÀíÔÚÒ»Æð£¬ÒªÇó£ºÎļþ ......

linuxÖÐELF¼ÓÔعý³Ì·ÖÎö

sys_execve
   | - do_execve
|
| - search_binary_handler         
           |- linux_binfmt= elf_format
       |- elf_format-> load_elf_binary
| -&nbs ......

»Ø¹Ë£º¶«¾©LinuxÄں˴ó»áºÏÓ°£¬NoÅ®ÐÔ

 ÕâÊdzöϯÔÚ2009Äê10ÔÂ20ÈÕÔÚ¶«¾©¾ÙÐеÄLinuxÄں˴ó»áºÏÓ°ÕÕ¡£È«·Ö±æÂÊÕÕƬ¡£Ò»¸öÅ®ÐÔ¶¼Ã»ÓС£ÄãÈÏʶÆäÖеļ¸Î»ÄØ£¿
ÒÔÏÂÊdzöϯ»áÒéµÄÃûµ¥£¬ÓÐÐËȤµÄÅóÓÑ¿ÉÒÔ¶ÔÒ»¶Ô£º
Al Viro
Alan Cox
Andi Kleen
Andrew Morton
Andy Whitcroft
Arjan van de Ven
Arnd Bergmann
Avi Kivity
Benjamin Herrenschmidt
Brian ......

LinuxÄÚ´æ¹ÜÀíÖ®slab·ÖÅäÆ÷·ÖÎö(ÐøÈý)

Áù£ºkmem_cache_allocµÄʵÏÖ·ÖÎö:
ÎÒÃÇÔÚÉÏÃæ¿ÉÒÔ¿´µ½£¬´´½¨Ò»¸öcacheÃèÊö·ûµÄʱºò£¬²¢Ã»ÓÐÕâÖ®·ÖÅäslabÊý¾Ý¡£ÏÖÔÚÎÒÃÇÀ´¿´Ò»ÏÂÔõô´ÓcacheÖÐÉêÇë¶ÔÏó
void * kmem_cache_alloc (kmem_cache_t *cachep, int flags)
{
     return __cache_alloc(cachep, flags);
}
ʵ¼ÊÉÏ»áµ÷ÓÃ__cache_allo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ