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

linux µÄºÃ°ïÊÖ yum

Ò». yumÊÇʲô
yum = Yellow dog Updater, Modified
Ö÷Òª¹¦ÄÜÊǸü·½±ãµÄÌí¼Ó/ɾ³ý/¸üÐÂRPM°ü.
ËüÄÜ×Ô¶¯½â¾ö°üµÄÒÐÀµÐÔÎÊÌâ.
ËüÄܱãÓÚ¹ÜÀí´óÁ¿ÏµÍ³µÄ¸üÐÂÎÊÌâ
¶þ. yumÌصã
*¿ÉÒÔͬʱÅäÖöà¸ö×ÊÔ´¿â(Repository)
*¼ò½àµÄÅäÖÃÎļþ(/etc/yum.conf
*×Ô¶¯½â¾öÔö¼Ó»òɾ³ýrpm°üʱÓöµ½µÄÒÐÀµÐÔÎÊÌâ
*ʹÓ÷½±ã
*±£³ÖÓëRPMÊý¾Ý¿âµÄÒ»ÖÂÐÔ
Èý. yum°²×°
Fedora×Ô´ø(yum-2.0.4-2.noarch.rpm)
#rpm -ivh yum-2.0.4-2.noarch.rpm
ËÄ. yumÖ¸Áî
×¢:µ±µÚÒ»´ÎʹÓÃyum»òyum×ÊÔ´¿âÓиüÐÂʱ,yum»á×Ô¶¯ÏÂÔØËùÓÐËùÐèµÄheaders·ÅÖÃÓÚ/var/cache/yumĿ¼ÏÂ,ËùÐèʱ¼ä¿ÉÄܽϳ¤.
*rpm°üµÄ¸üÐÂ
//¼ì²é¿É¸üеÄrpm°ü
#yum check-update
//¸üÐÂËùÓеÄrpm°ü
#yum update
//¸üÐÂÖ¸¶¨µÄrpm°ü,Èç¸üÐÂkernelºÍkernel source
#yum update kernel kernel-source
//´ó¹æÄ£µÄ°æ±¾Éý¼¶,Óëyum update²»Í¬µÄÊÇ,Á¬¾ÉµÄÌÔÌ­µÄ°üÒ²Éý¼¶
#yum upgrade
*rpm°üµÄ°²×°ºÍɾ³ý
//°²×°rpm°ü,Èçxmms-mp3
#yum install xmms-mp3
//ɾ³ýrpm°ü,°üÀ¨Óë¸Ã°üÓÐÒÐÀµÐԵİü
#yum remove licq
×¢:ͬʱ»áÌáʾɾ³ýlicq-gnome,licq-qt,licq-text
*yumÔÝ´æ(/var/cache/yum/)µÄÏà¹Ø²ÎÊý
//Çå³ýÔÝ´æÖÐrpm°üÎļþ
#yum clean packages
//Çå³ýÔÝ´æÖÐrpmÍ·Îļþ
#yum clearn headers
//Çå³ýÔÝ´æÖоɵÄrpmÍ·Îļþ
#yum clean oldheaders
//Çå³ýÔÝ´æÖоɵÄrpmÍ·ÎļþºÍ°üÎļþ
#yum clearn »ò#yum clearn all
×¢:Ï൱ÓÚyum clean packages + yum clean oldheaders
*rpm°üÁбí
//Áгö×ÊÔ´¿âÖÐËùÓпÉÒÔ°²×°»ò¸üеÄrpm°ü
#yum list
//Áгö×ÊÔ´¿âÖÐÌض¨µÄ¿ÉÒÔ°²×°»ò¸üÐÂÒÔ¼°ÒѾ­°²×°µÄrpm°ü
#yum list mozilla
#yum list mozilla*
×¢:¿ÉÒÔÔÚrpm°üÃûÖÐʹÓÃÆ¥Åä·û,ÈçÁгöËùÓÐÒÔmozilla¿ªÍ·µÄrpm°ü
//Áгö×ÊÔ´¿âÖÐËùÓпÉÒÔ¸üеÄrpm°ü
#yum list updates
//ÁгöÒѾ­°²×°µÄËùÓеÄrpm°ü
#yum list installed
//ÁгöÒѾ­°²×°µÄµ«ÊDz»°üº¬ÔÚ×ÊÔ´¿âÖеÄrpm°ü
#yum list extras
×¢:ͨ¹ýÆäËüÍøÕ¾ÏÂÔØ°²×°µÄrpm°ü
*rpm°üÐÅÏ¢ÏÔʾ(info²ÎÊýͬlist)
//Áгö×ÊÔ´¿âÖÐËùÓпÉÒÔ°²×°»ò¸üеÄrpm°üµÄÐÅÏ¢
#yum info
//Áгö×ÊÔ´¿âÖÐÌض¨µÄ¿ÉÒÔ°²×°»ò¸üÐÂÒÔ¼°ÒѾ­°²×°µÄrpm°üµÄÐÅÏ¢
#yum info mozilla
#yum info mozilla*
×¢:¿ÉÒÔÔÚrpm°üÃûÖÐʹÓÃÆ¥Åä·û,ÈçÁгöËùÓÐÒÔmozilla¿ªÍ·µÄrpm°üµÄÐÅÏ¢
//Áгö×ÊÔ´¿âÖÐËùÓпÉÒÔ¸üеÄrpm°üµÄ


Ïà¹ØÎĵµ£º

[»ù´¡]LinuxµÄdnsÖ÷»úÃûµÈÉèÖÃ

dns
/etc/resolv.conf
Ö÷»úÃû
1)#hostname tt.com
2)/etc/sysconfig/networkÖеÄhostname
3)ÐÞ¸Ä/etc/hostsÎļþ
=>sendmail->/etc/mail/local-host-names

gateway
etc/sysconfig/network
ip
/etc/sysconfig/network-scripts/ifcfg-eth0
1. ±ä¸üµ±Ç°Ö÷»úÃû
Á½ÖÖ·½·¨£º echo new-hostname > /proc/s ......

LINUX³£ÓÃÃüÁî(ת)

1.# ±íʾȨÏÞÓû§(Èç:root),$ ±íʾÆÕͨÓû§
¿ª»úÌáʾ
ogin:ÊäÈëÓû§Ãû
password:ÊäÈë¿ÚÁî Óû§ÊÇϵͳע²áÓû§³É¹¦µÇ½ºó£¬¿ÉÒÔ½øÈëÏàÓ¦µÄÓû§»·¾³.
Í˳öµ±Ç°shell,ÊäÈë:exit
2.useradd netseek Ìí¼ÓÒ»¸önetseekÓû§
passwd netseek ¸ønetseekÕâ¸öÓû§ÉèÖÃÃÜÂë.
(/etc/passwd /etc/group)
userdel netseek É ......

Linux I2C InputÉ豸Çý¶¯´úÂëµÄ¼¸µãÀí½â

×î½üÔÚ×öÒ»¸öI2C¼üÅ̵ÄLinuxÇý¶¯£¬²Î¿¼ÁËÆäËûоƬµÄһЩ´úÂ룬ÆäÖнÐø·¢ÏÖÓÐЩÈÃÈËÃÔ»óµÄ¶«Î÷£¬°ÑÎÒµÄÃÔ»ó¼°Àí½âÔÚÕâÀï¼ÓÒԼǼ£º
1. i2c_driver½á¹¹ÌåµÄprobe³ÉÔ±µÄÔ­ÐÍ£º
     int (*probe)(struct i2c_client *, const struct i2c_device_id *);
¼´£ºprobeº¯Êý±»µ÷ÓÃʱ»á´ÓÉϱߴ«Á½¸ö¸ö²Î ......

linuxϵͳÖÐÃüÁîµÄʹÓÃÏê½â


¹ØÓÚlinuxϵͳÖÐÃüÁîµÄʹÓÃÏê½â£¨1£©
 
·¢²¼Ê±¼ä£º2006.08.24 01:11     À´Ô´£º54master.com    ×÷Õߣºmary
Ãû³Æ£ºcat
ʹÓÃȨÏÞ£ºËùÓÐʹÓÃÕß
ʹÓ÷½Ê½£ºcat [-AbeEnstTuv] [--help] [--version] fileName
˵Ã÷£º°Ñµµ°¸´®Á¬½Óºó´«µ½»ù±¾Êä³ö£¨Ó©Ä»»ò¼Ó > fileN ......

¡¾linux¡¿c++ ÄÚ´æ¹ÜÀí£¨Ò»£©

1. ÄÚ´æ·ÖÅ䷽ʽ
(1) ´Ó¾²Ì¬´æ´¢ÇøÓò·ÖÅä¡£ÄÚ´æÔÚ³ÌÐò±àÒëµÄʱºò¾ÍÒѾ­·ÖÅäºÃ£¬Õâ¿éÄÚ´æÔÚ³ÌÐòµÄÕû¸öÔËÐÐÆڼ䶼´æÔÚ¡£ÀýÈ磺ȫ¾Ö±äÁ¿£¬static±äÁ¿¡£
(2) ÔÚÕ»ÉÏ´´½¨¡£ÔÚÖ´Ðк¯Êýʱ£¬º¯ÊýÄÚ¾Ö²¿±äÁ¿µÄ´æ´¢µ¥Ôª¶¼¿ÉÒÔÔÚÕ»ÉÏ´´½¨£¬º¯ÊýÖ´ÐнáÊøµÄʱºòÕâЩ´æ´¢µ¥Ôª×Ô¶¯±»ÊÍ·Å¡£Õ»ÄÚ´æ·ÖÅäÔËËãÄÚÖÃÓÚ´¦ÀíÆ÷µÄÖ¸ÁÖУ¬Ð§Âʺܸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ