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

yumÊÇʲô?(linuxÃüÁî)

 
yumÊÇʲô?(linuxÃüÁî)
Ò». yumÊÇʲô
yum = Yellow dog Updater, Modified
Ö÷Òª¹¦ÄÜÊǸü·½±ãµÄÌí¼Ó/ɾ³ý/¸üÐÂRPM°ü.
ËüÄÜ×Ô¶¯½â¾ö°üµÄÒÐÀµÐÔÎÊÌâ.
ËüÄܱãÓÚ¹ÜÀí´óÁ¿ÏµÍ³µÄ¸üÐÂÎÊÌâ
×¢:ΪʲôҪʹÓÃyum¶ø²»ÓÃapt,×î¼òµ¥µÄÔ­Òò,Fedora×Ô´ø
¶þ. yumÌصã
*¿ÉÒÔͬʱÅäÖöà¸ö×ÊÔ´¿â(Repository)
*¼ò½àµÄÅäÖÃÎļþ(/etc/yum.conf)
*×Ô¶¯½â¾öÔö¼Ó»òɾ³ýrpm°üʱÓöµ½µÄÒÐÀµÐÔÎÊÌâ
*ʹÓ÷½±ã
*±£³ÖÓëRPMÊý¾Ý¿âµÄÒ»ÖÂÐÔ
Èý. yum°²×°
Fedora×Ô´ø
#rpm -ivh yum-2.0.4-2.noarch.rpm
ËÄ. yumÅäÖÃ
×¢:Ð޸ĺÍÔö¼ÓÅäÖÃÎļþÖеÄ×ÊÔ´¿â,¼Ó¿ìÏÂÔØËٶȺÍÓµÓиü¶à¿É¸üеÄrpm°ü
½«/etc/yum.confµÄÄÚÈÝÈ«²¿Ì滻Ϊ
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
[fedora-us-1]
name=Fedora Core 1 -- Fedora US mirror
baseurl=ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/os
[fedora-us-1-updates]
name=Fedora Core 1 updates -- Fedora US mirror
baseurl=ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/updates
[fedora-us-1-stable]
name=Fedora Linux (stable) for Fedora Core 1 -- Fedora US mirror
baseurl=ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/stable
[freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
Îå. yumÓ¦ÓÃ
×¢:µ±µÚÒ»´ÎʹÓÃyum»òyum×ÊÔ´¿âÓиüÐÂʱ,yum»á×Ô¶¯ÏÂÔØËùÓÐËùÐèµÄheaders·ÅÖÃÓÚ/var/cache/yumĿ¼ÏÂ,ËùÐèʱ¼ä¿ÉÄܽϳ¤.
¼ì²éÓÐÄÄЩ¿É¸üеÄrpm°ü
#yum check-update
°²×°rpm°ü,ʹxmms¿ÉÒÔ²¥·Åmp3
#yum install xmms-mp3
°²×°mplayer,ͬʱ×Ô¶¯°²×°Ïà¹ØµÄÈí¼þ
#yum install mplayer
ɾ³ýlicq°ü,ͬʱɾ³ýÓë¸Ã°üÓÐÒÐÀµÐԵİü
#yum remove licq
×¢:ͬʱ»áÌáʾɾ³ýlicq-gnome,licq-qt,licq-text,·Ç³£·½±ã
ϵͳ¸üÐÂ(¸üÐÂËùÓпÉÒÔÉý¼¶µÄrpm°ü,°üÀ¨kernel)
#yum -y update
ÿÌ춨ÆÚÖ´ÐÐϵͳ¸üÐÂ
#chkconfig yum on
#service yum start
Áù. yumÖ¸ÁîÏê½â
*rpm°üµÄ¸üÐÂ
¼ì²é¿É¸üеÄrpm°ü
#yum check-update
¸üÐÂËùÓеÄrpm°ü
#yum update
¸üÐÂÖ¸¶¨µÄrpm°ü,Èç¸üÐÂkernelºÍkernel source
#yum update kernel kernel-source
´


Ïà¹ØÎĵµ£º

ÔÚLinuxÉÏ°²×°Ê¹Óà VMware Workstation 7 Ïê½â

 ×ªÔØ×Ô:http://blog.csdn.net/iamtrooper/archive/2009/11/06/4779041.aspx
°æ±¾£ºFC11£¬VMware Workstation 7.0.0 build-203739
Ó²¼þ£ºCPU T6570£¬ÄÚ´æ 2G
Ò»¡¢°²×°
Ïȵ½¹Ù·½ÍøÕ¾ http://downloads.vmware.com/d/details/workstation_7_0_for_linux/ZGolYmQlJUBiZGVkZQ== ÏÂÔØ VMware Workstation for 32-bit Li ......

Linux²Ù×÷ϵͳÏÂÐÞ¸ÄIP¡¢DNSºÍ·ÓÉÅäÖõÄÃüÁî

ÔÚLinux²Ù×÷ϵͳÏÂÐÞ¸ÄIP¡¢DNSºÍ·ÓÉÅäÖõÄÃüÁîÈçÏ£º
¡¡¡¡#ifconfig eth0
¡¡¡¡ÐµÄ
¡¡¡¡#ip
¡¡¡¡È»ºó±à¼­/etc/sysconfig/network-scripts/ifcfg-eth0£¬ÐÞ¸Äip
¡¡¡¡Ò»¡¢ÐÞ¸ÄIPµØÖ·
¡¡¡¡[aeolus@db1 network-scripts]$ vi ifcfg-eth0
¡¡¡¡DEVICE=eth0
¡¡¡¡ONBOOT=yes
¡¡¡¡BOOTPROTO=static
¡¡¡¡IPADDR=2 ......

linux ÎļþÖÐËÑË÷×Ö·û´®ÃüÁî grep

 
ÓÑgrep’ËÑË÷Îı¾Îļþ
Èç¹ûÄúÒªÔÚ¼¸¸öÎı¾ÎļþÖвéÕÒÒ»×Ö·û´®£¬¿ÉÒÔʹÓÑgrep’ÃüÁî¡£‘grep’ÔÚÎı¾ÖÐËÑË÷Ö¸¶¨µÄ×Ö·û´®¡£
¼ÙÉèÄúÕýÔÚ‘/usr/src/linux/Documentation’Ŀ¼ÏÂËÑË÷´ø×Ö·û´®‘magic’µÄÎļþ£º
$ grep magic /usr/src/linux/Documentation/ ......

Linux findÃüÁîÏê½â

ÓÉÓÚfind¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬ËùÒÔËüµÄÑ¡ÏîÒ²ºÜ¶à£¬ÆäÖд󲿷ÖÑ¡ÏֵµÃÎÒÃÇ»¨Ê±¼äÀ´Á˽âһϡ£¼´Ê¹ÏµÍ³Öк¬ÓÐÍøÂçÎļþϵͳ( NFS)£¬findÃüÁîÔÚ¸ÃÎļþϵͳÖÐͬÑùÓÐЧ£¬Ö»Äã¾ßÓÐÏàÓ¦µÄȨÏÞ¡£
ÔÚÔËÐÐÒ»¸ö·Ç³£ÏûºÄ×ÊÔ´µÄfindÃüÁîʱ£¬ºÜ¶àÈ˶¼ÇãÏòÓÚ°ÑËü·ÅÔÚºǫִ́ÐУ¬ÒòΪ±éÀúÒ»¸ö´óµÄÎļþϵͳ¿ÉÄܻỨ·ÑºÜ³¤µÄʱ¼ä(ÕâÀïÊÇÖ¸30G×Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ