°®°®Ð¡ËµÍø > ÆäËûµç×ÓÊé > linux°®ºÃÕßÈëÃÅ½Ì³Ì >

µÚ6ÕÂ

linux°®ºÃÕßÈëÃŽ̳Ì-µÚ6ÕÂ

С˵£º linux°®ºÃÕßÈëÃÅ½Ì³Ì ×ÖÊý£º ÿҳ3500×Ö

°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·­Ò³£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡



Ëhomes¶Îʱ£¬ÄÇô¾ÍËÑË÷ÃÜÂëÎļþµÃµ½Óû§µÄHomeĿ¼¡£Í¨¹ýHomes¶Î£¬Samba¿ÉÒԵõ½Óû§µÄHomeĿ¼²¢Ê¹Ö®¹²Ïí¡£ÏÂÃæÊÇÕâ¸ö¶ÎµÄ×î»ù±¾µÄ¼¸¸öÉèÖá£
£§homes£§
ment=Home¡¡Directory
browseable=no
writable=yes
±È½ÏÕý³£µÄ¹²ÏíµÄÅäÖÃÈçÏÂÀý£º
£§MyShare£§
ment¡¡=¡¡grind¡¯s¡¡file
path¡¡=¡¡/home/grind
allow¡¡hosts¡¡=¡¡host£¨subnet£©
deny¡¡hosts¡¡=¡¡host£¨subnet£©
writable¡¡=¡¡yes£üno
user¡¡=¡¡user£¨@group£©
valid¡¡users¡¡=¡¡user£¨@group£©
invalid¡¡users¡¡=¡¡user£¨@group£©
read¡¡list¡¡=¡¡user£¨@group£©
write¡¡list¡¡=¡¡user£¨@group£©
admin¡¡list¡¡=¡¡user£¨@group£©
public¡¡=¡¡yes£üno
hide¡¡dot¡¡files¡¡=¡¡yes£üno
create¡¡mode¡¡=¡¡0755
directory¡¡mode¡¡=¡¡0755
sync¡¡always¡¡=¡¡yes£üno
short¡¡preserve¡¡case¡¡=¡¡yes£üno
preserve¡¡case¡¡=¡¡yes£üno
case¡¡sensitive¡¡=¡¡yes£üno
mangle¡¡case¡¡=¡¡yes£üno
default¡¡case¡¡=¡¡upper£ülower
force¡¡user¡¡=¡¡grind
wide¡¡links¡¡=¡¡yes£üno
max¡¡connections¡¡=¡¡100
delete¡¡readonly¡¡=¡¡yes£üno
ÆäÖУ§£§ÀïÃæµÄMyShareÖ¸¶¨¹²ÏíÃû£¬Ò»°ã¾ÍÊÇÍøÂçÁÚ¾ÓÀïÃæ¿ÉÒÔ¿´¼ûµÄÎļþ¼ÐµÄÃû×Ö¡£
mentÖ¸µÄÊǶԸĹ²ÏíµÄ±¸×¢¡£
pathÖ¸¶¨¹²ÏíµÄ·¾¶£¬ÆäÖпÉÒÔÅäºÏsamba±äÁ¿Ê¹ÓᣱÈÈçÄã¿ÉÒÔÖ¸¶¨path=/data/£¥m£¬ÕâÑùÈç¹ûһ̨»úÆ÷µÄNETBIOSÃû×ÖÊÇgrind£»Ëü·ÃÎÊMyShareÕâ¸ö¹²ÏíµÄʱºò¾ÍÊǽøÈë/data/grindĿ¼£»¶ø¶ÔÓÚNETBIOSÃûÊÇglassµÄ»úÆ÷£¬Ôò½øÈë/data/glassĿ¼¡£
allow¡¡hostsºÍdeny¡¡hostsºÍÇ°ÃæµÄÈ«¾ÖÉèÖõķ½·¨Ò»ÑùÕâÀï²»ÔÙÌá¼°¡£
writeableÖ¸¶¨ÁËÕâ¸öĿ¼ȱʡÊÇ·ñ¿Éд£¬Ò²¿ÉÒÔÓÃreadonly¡¡=¡¡noÀ´ÉèÖÿÉд¡£
userÉèÖÃËùÓпÉÄÜʹÓøù²Ïí×ÊÔ´µÄÓû§£¬Ò²¿ÉÒÔÓÃ@group´ú±ígroupÕâ¸ö×éµÄËùÓгÉÔ±£¬²»Í¬µÄÏîÄ¿Ö®¼äÓÿոñ»òÕ߶ººÅ¸ô¿ª¡£
valid¡¡usersÖ¸¶¨Äܹ»Ê¹Óøù²Ïí×ÊÔ´µÄÓû§ºÍ×é¡£
invalid¡¡usersÖ¸¶¨²»Äܹ»Ê¹Óøù²Ïí×ÊÔ´µÄÓû§ºÍ×é¡£
read¡¡list¡¡Ö¸¶¨Ö»ÄܶÁÈ¡¸Ã¹²Ïí×ÊÔ´µÄÓû§ºÍ×é¡£
write¡¡listÖ¸¶¨ÄܶÁÈ¡ºÍд¸Ã¹²Ïí×ÊÔ´µÄÓû§ºÍ×é¡£
admin¡¡listÖ¸¶¨ÄܹÜÀí¸Ã¹²Ïí×ÊÔ´£¨°üÀ¨¶ÁдºÍȨÏÞ¸³ÓèµÈ£©µÄÓû§ºÍ×é¡£
publicÖ¸Ã÷¸Ã¹²Ïí×ÊÔ´ÊÇ·ñÄܸøÓοÍÕʺŷÃÎÊ£¬Õâ¸ö¿ª¹ØÓÐʱºòÒ²½Ðguest¡¡ok£¬ËùÒÔÓеÄÅäÖÃÎļþÖгöÏÖguest¡¡ok¡¡=¡¡yesÆäʵºÍpublic¡¡=¡¡yesÊÇÒ»ÑùµÄ¡£
hide¡¡dot¡¡filesÖ¸Ã÷ÊDz»ÊÇÏñunixÄÇÑùÒþ²ØÒÔ¡°¡£¡±ºÅ¿ªÍ·µÄÎļþ¡£
create¡¡modeÖ¸Ã÷н¨Á¢µÄÎļþµÄÊôÐÔ£¬Ò»°ãÊÇ0755¡£
directory¡¡modeÖ¸Ã÷н¨Á¢µÄĿ¼µÄÊôÐÔ£¬Ò»°ãÊÇ0755¡£
sync¡¡alwaysÖ¸Ã÷¶Ô¸Ã¹²Ïí×ÊÔ´½øÐÐд²Ù×÷ºóÊÇ·ñ½øÐÐͬ²½²Ù×÷¡£
short¡¡preserve¡¡caseÖ¸Ã÷²»¹ÜÎļþÃû´óСд¡£
preserve¡¡caseÖ¸Ã÷±£³Ö´óСд¡£
case¡¡sensitiveÖ¸Ã÷ÊÇ·ñ¶Ô´óСдÃô¸Ð£¬Ò»°ãÑ¡no£»²»È»¿ÉÄÜÒýÆð´íÎó¡£
mangle¡¡caseÖ¸Ã÷»ìºÏ´óСд¡£
default¡¡caseÖ¸Ã÷ȱʡµÄÎļþÃûÊÇÈ«²¿´óд»¹ÊÇСд¡£
force¡¡userÇ¿Öưѽ¨Á¢ÎļþµÄÊôÖ÷ÊÇË­¡£Èç¹ûÎÒÓÐÒ»¸öĿ¼£¬ÈÃguest¿ÉÒÔд£¬ÄÇôguest¾Í¿ÉÒÔɾ³ý£¬Èç¹ûÎÒÓÃforce¡¡user=¡¡grindÇ¿Öƽ¨Á¢ÎļþµÄÊôÖ÷ÊÇgrind£¬Í¬Ê±ÏÞÖÆcreate¡¡mask¡¡=¡¡0755£¬ÕâÑùguest¾Í²»ÄÜɾ³ýÁË¡£
wide¡¡linksÖ¸Ã÷ÊÇ·ñÔÊÐí¹²ÏíÍâ·ûºÅÁ¬½Ó£¬±ÈÈç¹²Ïí×ÊÔ´ÀïÃæÓиöÁ¬½ÓÖ¸Ïò·Ç¹²Ïí×ÊÔ´ÀïÃæµÄÎļþ»òÕßĿ¼£¬Èç¹ûÉèÖÃwide¡¡links¡¡=¡¡no½«Ê¹¸ÃÁ¬½Ó²»¿ÉÓá£
max¡¡connections¡¡=¡¡nÉ趨ͬʱÁ¬½ÓÊýÊÇn¡£
delete¡¡readonlyÖ¸Ã÷ÄÜ·ñɾ³ý¹²Ïí×ÊÔ´ÀïÃæÒѾ­±»¶¨ÒåΪֻ¶ÁµÄÎļþ¡£
ÓÐÁ½ÀàÌØÊâµÄ¹²Ïí£¬·Ö±ðÊǹâÇýºÍ´òÓ¡»ú
¹âÇýµÄ¹²ÏíÉèÖãº
£§cdrom£§
ment¡¡=¡¡grind¡¯s¡¡cdrom
path¡¡=¡¡/mnt/cdrom
public¡¡=¡¡yes
browseable¡¡=¡¡yes
root¡¡preexec¡¡=¡¡/bin/mount¡¡¡­t¡¡iso9660¡¡/dev/cd0¡¡/mnt/cdrom
root¡¡postexec¡¡=¡¡/bin/umount¡¡/mnt/cdrom
ÕâÀïroot¡¡preexecÖ¸Ã÷ÁËÁ¬½ÓʱÓÃrootµÄÉí·ÝÔËÐÐmountÃüÁ¶øroot¡¡postexecÔòÖ¸Ã÷Á˶ϿªÊ±ÓÃrootÉí·ÝÔËÐÐumount£»ÓÐЧʵÏÖÁ˶ԹâÇýµÄ¹²Ïí¡£
´òÓ¡»ú¹²ÏíµÄÉèÖãº
£§printers£§
path¡¡=¡¡/var/spool/samba
writeable¡¡=¡¡no
guest¡¡ok¡¡=¡¡yes
printable¡¡=¡¡yes
printer¡¡driver¡¡=¡¡HP¡¡LaserJet¡¡5L
ÕâÀïprintableÖ¸Ã÷¸Ã´òÓ¡»ú¿ÉÒÔ´òÓ¡£¬¡¡guest¡¡ok˵Ã÷ÓοÍÒ²ÄÜ´òÓ¡£¬pathÖ¸Ã÷´òÓ¡µÄÎļþ¶ÓÁÐÔÝʱ·Åµ½/var/spool/sambaĿ¼Ï¡£printer¡¡driverµÄ×÷ÓÃÊÇÖ¸Ã÷¸Ã´òÓ¡»úµÄÀàÐÍ£¬ÕâÑùÎÒÃÇÔÚ°²×°ÍøÂç´òÓ¡»úµÄʱºò¿ÉÒÔÖ±½Ó×Ô¶¯°²×°Çý¶¯¶ø²»±ØÑ¡Ôñ¡£
Ìí¼ÓÓû§£º
sambaÌí¼ÓÓû§±È½Ï·½±ã£¬Ò»°ãÊÇÓÃsmbadduser£¬Ó÷¨ÊÇsmbadduser¡¡unixid£ºnetid£¬¾Ù¸öÀý×Ó£ºÈç¹ûÄãµÄ±¾»úÓиö½ÐgrindµÄÓû§£¬ÄãÓÃsmbadduser¡¡grind£ºgrind£¬ÕâÑù´ÓÍøÉÏÁÚ¾Ó·ÃÎʵÄʱºòÓû§Ãû¾ÍÓÃgrind£¬¶øÈç¹ûÄãÓÃÁËsmbadduser¡¡grind£ºglassµÄ»°£¬ÍøÉÏÁÚ¾Ó·ÃÎʵÄʱºòÌṩµÄÓû§Ãû¾ÍÊÇglass¶ø²»ÊÇgrindÁË¡£
¹ØÓÚsamba·þÎñ¶ËµÄÉèÖûù±¾¾ÍÊÇÕâЩ£¬ÎÒÏëÒ»°ãÓ¦ÓÃÖÐËùҪʹÓõÄÉÏÃ漸ºõ¶¼¸²¸Çµ½ÁË£¬ËùÒÔÓÐЩ²»ÖØÒªµÄ¾ÍÊ¡ÂÔÁË£¬Èç¹ûÒª¸ü¼ÓÏêϸµÄÐÅÏ¢¿ÉÒÔÓÃman¡¡smbnf²Î¿¼¡£/dev/null
3£®mf_wrapperÊÇÒ»¸ömagic¡¡filterÎļþ£¬ÊÇÏà¹ØµÄһЩ¹ýÂ˹æÔò¡£ÄÚÈÝÊÇ£º
MF_RULE_DIR='/usr/share/printconf/mf_rules'
MF_RULES=MF_RULE_DIR/mf£§£§£§£§£§£§£§£§
TMP_FILE=¡®mktemp¡¡/tmp/printconf¡£XXXXXX¡®'¡¡'exit¡¡1
cat¡¡¡£/mf¡£cfg¡¡MF_RULES¡¡£ü¡¡m4¡¡¡·£»¡¡TMP_FILE
if¡¡£§¡¡¡­n¡¡¡¨DEBUG¡¨¡¡£§£»¡¡then
case¡¡¡¨DEBUG¡¨¡¡in
2£©
DEBUGSTRING=¡¨debug¡¡debug¡¨
£»£»
3£©
DEBUGSTRING=¡¨debug¡¡debug¡¡debug¡¨
£»£»¡¡4£©
DEBUGSTRING=¡¨debug¡¡debug¡¡debug¡¡debug¡¨
£»£»
5£©
DEBUGSTRING=¡¨debug¡¡debug¡¡debug¡¡debug¡¡debug¡¨
£»£»
*£©
DEBUGSTRING=¡¨debug¡¨
£»£»
esac
else
DEBUGSTRING=¡¨¡¨
fi
#¡¡Run¡¡magic¡¡filter
/usr/bin/magicfilter¡­t¡¡TMP_FILE¡¡DEBUGSTRING¡¡*¡¡
½ÓÏÂÀ´µÄ²Ù×÷ºÍftpµÄʱºòÃüÁîÒ»Ñù£¬ÓÃgetÏÂÔØÎļþ¶øÓÃputÉÏ´«Îļþ£¬ÃüÁî¿ÉÒÔÓÃhelp²é¿´¡£
»¹ÓÐÒ»ÖÖ·½·¨ÊÇÓÃÎļþϵͳµÄ·½Ê½£¨ÕâÖÖ·½Ê½ÒªÈ·¶¨ÄãµÄÄÚºËÖ§³Ösmbfs£¬Èç¹ûûÓÐÖ§³ÖµÄ»°£¬±àÒëÄں˵Äʱºò±ØÐëÑ¡ÖÐFile¡¡systems¡­¡·£»Network¡¡File¡¡Systems¡­¡·£»¡¡SMB¡¡file¡¡system¡¡support¡¡£¨to¡¡mount¡¡Windows¡¡shares¡¡etc¡££©¡¡£©£º
smbmount¡¡//IP»òÕßNETBIOSÃû³Æ/¹²Ïí×ÊÔ´Ãû¡¡/±¾µØ¹Ò½Óµã¡¡£§¡­o¡¡option£§
³£ÓõĵÄoptionÓÐusername=£¬password=£¬guest£¨Ö¸¶¨ÎªÓÃguest·ÃÎÊ£¬²»ÓÃÌṩÃÜÂ룬ǰÃæµÄ¼´Ê¹ÓÃusername=guest²ÎÊýµÄ»°Ò²»áÒªÇóÊäÈëÃÜÂ룩£¬ro£¨ÓÐʱºòΪÁËϵͳ°²È«ÒªÖ¸¶¨ÎªÖ»¶Áģʽ£©£¬rw£¬Í¬Ê±¶à¸öoptionµÄ»°ÓöººÅ¸ô¿ª¡£
»òÕß¿ÉÒÔÓÃmount¡¡¡­t¡¡smbfs¡¡£§¡­o¡¡option£§¡¡//IP»òÕßNETBIOSÃû³Æ/¹²Ïí×ÊÔ´Ãû¡¡/±¾µØ¹Ò½ÓµãÀ´ÊµÏÖͬÑùµÄ¹¦ÄÜ¡£
Àý×ÓÈçÏ£º
smbmount¡¡//glass/littlep¡¡/test¡¡¡­o¡¡guest»òÕßmount¡¡¡­t¡¡smbfs¡¡¡­o¡¡guest¡¡//glass/littlep¡¡/test£¬È»ºó¾ÍÄÜͨ¹ý·ÃÎÊ/testÀ´Ê¹ÓÃÍøÂçÉϵÄ×ÊÔ´ÁË¡£
Èç¹û²»ÐèҪʹÓõÄʱºò£¬¿ÉÒÔ¼òµ¥µØʹÓÃsmbumount¡¡/test»òÕßumount¡¡/testÀ´½â³ýÕâ¸ö¹Ò½Ó¡£
¹ØÓÚsambaµÄ¹¦ÄÜ£¨¹²ÏíLinux´ÅÅ̸øWin95/NT¡¢¹²ÏíLinux´òÓ¡»ú¸øwin95/NT¡¢¹²Ïíwin95/NT´òÓ¡»ú¸øLinux»úÆ÷¡£¡¢¹²ÏíWin95/NT´ÅÅ̸øLinux»úÆ÷£©£¬Ç°ÃæÁ½¸öÊôÓÚsamba·þÎñÆ÷µÄÄÚÈݶøºóÁ½¸öÊôÓÚsamba¿Í»§¶ÎµÄÄÚÈÝ£¬ÔÚÎÒµÄÁ½ÆªÎÄÕÂÖж¼ÓнéÉÜÁËËûÃǵÄʵÏÖ·½·¨£¬µ«ÊÇsambaʵÔÚÊÇÒ»¸öÇ¿´óµÄ¹¤¾ß£¬ÎÞ·¨Ê®·ÖÏêϸµØ½éÉÜËüµØÈ«²¿¹¦ÄÜ£¬¶øÇÒÏÞÓÚ±ÊÕßµÄ֪ʶÓÐÏÞ£¬Óв»µ½Ö®´¦Çë¸÷λָ³ö£¬»¹Íû¸÷λ¶à¶à½»Á÷¡£¡¡
RPMÃüÁîÊֲᡡ
Ò»¡¢°²×°¡¡

ÃüÁî¸ñʽ£º¡¡

rpm¡¡¡­i¡¡£¨¡¡or¡¡install£©¡¡options¡¡file1¡£rpm¡¡¡£¡£¡£¡¡fileN¡£rpm¡¡

²ÎÊý£º¡¡

file1¡£rpm¡¡¡£¡£¡£¡¡fileN¡£rpm¡¡½«Òª°²×°µÄRPM°üµÄÎļþÃû¡¡

ÏêϸѡÏ¡¡

¡­h¡¡£¨or¡¡hash£©¡¡°²×°Ê±Êä³öhash¼ÇºÅ¡¡£¨¡®¡®#''£©¡¡
test¡¡Ö»¶Ô°²×°½øÐвâÊÔ£¬²¢²»Êµ¼Ê°²×°¡£¡¡
percent¡¡Ò԰ٷֱȵÄÐÎʽÊä³ö°²×°µÄ½ø¶È¡£¡¡
excludedocs¡¡²»°²×°Èí¼þ°üÖеÄÎĵµÎļþ¡¡
includedocs¡¡°²×°Îĵµ¡¡
replacepkgs¡¡Ç¿ÖÆÖØа²×°ÒѾ­°²×°µÄÈí¼þ°ü¡¡
replacefiles¡¡Ìæ»»ÊôÓÚÆäËüÈí¼þ°üµÄÎļþ¡¡
force¡¡ºöÂÔÈí¼þ°ü¼°ÎļþµÄ³åÍ»¡¡
noscripts¡¡²»ÔËÐÐÔ¤°²×°ºÍºó°²×°½Å±¾¡¡
prefix¡¡½«Èí¼þ°ü°²×°µ½ÓÉ¡¡Ö¸¶¨µÄ·¾¶Ï¡¡
ignorearch¡¡²»Ð£ÑéÈí¼þ°üµÄ½á¹¹¡¡
ignoreos¡¡²»¼ì²éÈí¼þ°üÔËÐеIJÙ×÷ϵͳ¡¡
nodeps¡¡²»¼ì²éÒÀÀµÐÔ¹Øϵ¡¡
ftpproxy¡¡Óá¡×÷Ϊ¡¡FTP´úÀí¡¡
ftpport¡¡Ö¸¶¨FTPµÄ¶Ë¿ÚºÅΪ¡¡

ͨÓÃÑ¡Ïî¡¡

¡­v¡¡ÏÔʾ¸½¼ÓÐÅÏ¢¡¡
¡­vv¡¡ÏÔʾµ÷ÊÔÐÅÏ¢¡¡
root¡¡ÈÃRPM½«Ö¸¶¨µÄ·¾¶×öΪ¡¨¸ùĿ¼¡¨£¬ÕâÑùÔ¤°²×°³ÌÐòºÍºó°²¡¡
×°³ÌÐò¶¼»á°²×°µ½Õâ¸öĿ¼Ï¡¡
rcfile¡¡ÉèÖÃrpmrcÎļþΪ¡¡
dbpath¡¡ÉèÖÃRPM¡¡×ÊÁÏ¿â´æËùÔڵķ¾¶Îª¡¡

¶þ¡¢É¾³ý¡¡

ÃüÁî¸ñʽ£º¡¡

rpm¡¡¡­e¡¡£¨¡¡or¡¡erase£©¡¡options¡¡pkg1¡¡¡£¡£¡£¡¡pkgN¡¡

²ÎÊý¡¡

pkg1¡¡¡£¡£¡£¡¡pkgN¡¡£ºÒªÉ¾³ýµÄÈí¼þ°ü¡¡

ÏêϸѡÏî¡¡

test¡¡Ö»Ö´ÐÐɾ³ýµÄ²âÊÔ¡¡
noscripts¡¡²»ÔËÐÐÔ¤°²×°ºÍºó°²×°½Å±¾³ÌÐò¡¡
nodeps¡¡²»¼ì²éÒÀÀµÐÔ¡¡

ͨÓÃÑ¡Ïî¡¡

¡­vv¡¡ÏÔʾµ÷ÊÔÐÅÏ¢¡¡
root¡¡ÈÃRPM½«Ö¸¶¨µÄ·¾¶×öΪ¡¨¸ùĿ¼¡¨£¬ÕâÑùÔ¤°²×°³ÌÐòºÍºó°²×°¡¡
³ÌÐò¶¼»á°²×°µ½Õâ¸öĿ¼Ï¡¡
rcfile¡¡ÉèÖÃrpmrcÎļþΪ¡¡
dbpath¡¡ÉèÖÃRPM¡¡×ÊÁÏ¿â´æËùÔڵķ¾¶Îª¡¡

Èý¡¢Éý¼¶¡¡

ÃüÁî¸ñʽ¡¡

rpm¡¡¡­U¡¡£¨¡¡or¡¡upgrade£©¡¡options¡¡file1¡£rpm¡¡¡£¡£¡£¡¡fileN¡£rpm¡¡

²ÎÊý¡¡

file1¡£rpm¡¡¡£¡£¡£¡¡fileN¡£rpm¡¡Èí¼þ°üµÄÃû×Ö¡¡

ÏêϸѡÏî¡¡

¡­h¡¡£¨or¡¡hash£©¡¡°²×°Ê±Êä³öhash¼ÇºÅ¡¡£¨¡®¡®#''£©¡¡
oldpackage¡¡ÔÊÐí¡¨Éý¼¶¡¨µ½Ò»¸öÀÏ°æ±¾¡¡
test¡¡Ö»½øÐÐÉý¼¶²âÊÔ¡¡
excludedocs¡¡²»°²×°Èí¼þ°üÖеÄÎĵµÎļþ¡¡
includedocs¡¡°²×°Îĵµ¡¡
replacepkgs¡¡Ç¿ÖÆÖØа²×°ÒѾ­°²×°µÄÈí¼þ°ü¡¡
replacefiles¡¡Ìæ»»ÊôÓÚÆäËüÈí¼þ°üµÄÎļþ¡¡
force¡¡ºöÂÔÈí¼þ°ü¼°ÎļþµÄ³åÍ»¡¡
percent¡¡Ò԰ٷֱȵÄÐÎʽÊä³ö°²×°µÄ½ø¶È¡£¡¡
noscripts¡¡²»ÔËÐÐÔ¤°²×°ºÍºó°²×°½Å±¾¡¡
prefix¡¡½«Èí¼þ°ü°²×°µ½ÓÉ¡¡Ö¸¶¨µÄ·¾¶Ï¡¡
ignorearch¡¡²»Ð£ÑéÈí¼þ°üµÄ½á¹¹¡¡
ignoreos¡¡²»¼ì²éÈí¼þ°üÔËÐеIJÙ×÷ϵͳ¡¡
nodeps¡¡²»¼ì²éÒÀÀµÐÔ¹Øϵ¡¡
ftpproxy¡¡Óá¡×÷Ϊ¡¡FTP´úÀí¡¡
ftpport¡¡Ö¸¶¨FTPµÄ¶Ë¿ÚºÅΪ¡¡

ͨÓÃÑ¡Ïî¡¡

¡­v¡¡ÏÔʾ¸½¼ÓÐÅÏ¢¡¡
¡­vv¡¡ÏÔʾµ÷ÊÔÐÅÏ¢¡¡
root¡¡ÈÃRPM½«Ö¸¶¨µÄ·¾¶×öΪ¡¨¸ùĿ¼¡¨£¬ÕâÑùÔ¤°²×°³ÌÐòºÍºó°²×°³ÌÐò¶¼»á°²×°µ½Õâ¸öĿ¼Ï¡¡
rcfile¡¡ÉèÖÃrpmrcÎļþΪ¡¡
dbpath¡¡ÉèÖÃRPM¡¡×ÊÁÏ¿â´æËùÔڵķ¾¶Îª¡¡

ËÄ¡¢²éѯ¡¡

ÃüÁî¸ñʽ£º¡¡

rpm¡¡¡­q¡¡£¨¡¡or¡¡query£©¡¡options¡¡

²ÎÊý£º¡¡

pkg1¡¡¡£¡£¡£¡¡pkgN¡¡£º²éѯÒÑ°²×°µÄÈí¼þ°ü¡¡

ÏêϸѡÏî¡¡

¡­p¡¡£¨or¡¡¡®¡®¡­''£©¡¡²éѯÈí¼þ°üµÄÎļþ¡¡
¡­f¡¡²éѯÊôÓÚÄĸöÈí¼þ°ü¡¡
¡­a¡¡²éѯËùÓа²×°µÄÈí¼þ°ü¡¡
whatprovides¡¡²éѯÌṩÁË¡¡¹¦ÄܵÄÈí¼þ°ü¡¡
¡­g¡¡²éѯÊôÓÚ¡¡×éµÄÈí¼þ°ü¡¡
whatrequires¡¡²éѯËùÓÐÐèÒª¡¡¹¦ÄܵÄÈí¼þ°ü¡¡

ÐÅϢѡÏî¡¡

ÏÔʾÈí¼þ°üµÄÈ«²¿±êʶ¡¡
¡­i¡¡ÏÔʾÈí¼þ°üµÄ¸ÅÒªÐÅÏ¢¡¡
¡­l¡¡ÏÔʾÈí¼þ°üÖеÄÎļþÁÐ±í¡¡
¡­c¡¡ÏÔʾÅäÖÃÎļþÁÐ±í¡¡
¡­d¡¡ÏÔʾÎĵµÎļþÁÐ±í¡¡
¡­s¡¡ÏÔʾÈí¼þ°üÖÐÎļþÁÐ±í²¢ÏÔʾÿ¸öÎļþµÄ״̬¡¡
scripts¡¡ÏÔʾ°²×°¡¢Ð¶ÔØ¡¢Ð£Ñé½Å±¾¡¡
queryformat¡¡£¨or¡¡qf£©¡¡ÒÔÓû§Ö¸¶¨µÄ·½Ê½ÏÔʾ²éѯÐÅÏ¢¡¡
dump¡¡ÏÔʾÿ¸öÎļþµÄËùÓÐÒÑУÑéÐÅÏ¢¡¡
provides¡¡ÏÔʾÈí¼þ°üÌṩµÄ¹¦ÄÜ¡¡
requires¡¡£¨or¡¡¡­R£©¡¡ÏÔʾÈí¼þ°üËùÐèµÄ¹¦ÄÜ¡¡

ͨÓÃÑ¡Ïî¡¡

¡­v¡¡ÏÔʾ¸½¼ÓÐÅÏ¢¡¡
¡­vv¡¡ÏÔʾµ÷ÊÔÐÅÏ¢¡¡
root¡¡ÈÃRPM½«Ö¸¶¨µÄ·¾¶×öΪ¡¨¸ùĿ¼¡¨£¬ÕâÑùÔ¤°²×°³ÌÐòºÍºó°²×°³ÌÐò¶¼»á°²×°µ½Õâ¸öĿ¼Ï¡¡
rcfile¡¡ÉèÖÃrpmrcÎļþΪ¡¡
dbpath¡¡ÉèÖÃRPM¡¡×ÊÁÏ¿â´æËùÔڵķ¾¶Îª¡¡

Î塢УÑéÒÑ°²×°µÄÈí¼þ°ü¡¡

ÃüÁî¸ñʽ£º¡¡

rpm¡¡¡­V¡¡£¨¡¡or¡¡verify£»¡¡or¡¡¡­y£©¡¡options¡¡

²ÎÊý¡¡

pkg1¡¡¡£¡£¡£¡¡pkgN¡¡½«ÒªÐ£ÑéµÄÈí¼þ°üÃû¡¡

Èí¼þ°üÑ¡Ïî¡¡

¡­p¡¡Verify¡¡against¡¡package¡¡file¡¡
¡­f¡¡Ð£ÑéËùÊôµÄÈí¼þ°ü¡¡
¡­a¡¡Verify¡¡Ð£ÑéËùÓеÄÈí¼þ°ü¡¡
¡­g¡¡Ð£ÑéËùÓÐÊôÓÚ×é¡¡µÄÈí¼þ°ü¡¡

ÏêϸѡÏî¡¡

noscripts¡¡²»ÔËÐÐУÑé½Å±¾¡¡
nodeps¡¡²»Ð£ÑéÒÀÀµÐÔ¡¡
nofiles¡¡²»Ð£ÑéÎļþÊôÐÔ¡¡

ͨÓÃÑ¡Ïî¡¡

¡­v¡¡ÏÔʾ¸½¼ÓÐÅÏ¢¡¡
¡­vv¡¡ÏÔʾµ÷ÊÔÐÅÏ¢¡¡
root¡¡ÈÃRPM½«Ö¸¶¨µÄ·¾¶×öΪ¡¨¸ùĿ¼¡¨£¬ÕâÑùÔ¤°²×°³ÌÐòºÍºó°²×°³ÌÐò¶¼»á°²×°µ½Õâ¸öĿ¼Ï¡¡
rcfile¡¡ÉèÖÃrpmrcÎļþΪ¡¡
dbpath¡¡ÉèÖÃRPM¡¡×ÊÁÏ¿â´æËùÔڵķ¾¶Îª¡¡

Áù¡¢Ð£ÑéÈí¼þ°üÖеÄÎļþ¡¡

Óï·¨£º¡¡

rpm¡¡¡­K¡¡£¨¡¡or¡¡checksig£©¡¡options¡¡file1¡£rpm¡¡¡£¡£¡£¡¡fileN¡£rpm¡¡

²ÎÊý£º¡¡

file1¡£rpm¡¡¡£¡£¡£¡¡fileN¡£rpm¡¡Èí¼þ°üµÄÎļþÃû¡¡

ChecksigÏêϸѡÏî¡¡

nopgp¡¡²»Ð£ÑéPGPÇ©Ãû¡¡

ͨÓÃÑ¡Ïî¡¡

¡­v¡¡ÏÔʾ¸½¼ÓÐÅÏ¢¡¡
¡­vv¡¡ÏÔʾµ÷ÊÔÐÅÏ¢¡¡
rcfile¡¡ÉèÖÃrpmrcÎļþΪ¡¡


Æß¡¢ÆäËüRPMÑ¡Ïî¡¡

rebuilddb¡¡Öؽ¨RPM×ÊÁÏ¿â¡¡
initdb¡¡´´½¨Ò»¸öеÄRPM×ÊÁÏ¿â¡¡
quiet¡¡¾¡¿ÉÄܵļõÉÙÊä³ö¡¡
help¡¡ÏÔʾ°ïÖúÎļþ¡¡
version¡¡ÏÔʾRPMµÄµ±Ç°°æ±¾¡¡

Linux°®ºÃÕßÈëÃŽ̳Ì

×î½üÔÚѧϰlinuxÔÚÍøÉÏ·¢ÏÖһƪºÃÎÄ£¬×ª¸ø´ó¼Ò£¬Ï£Íû¶Ô´ó¼ÒÓÐËù°ïÖú£¡ÒÔºóÔÙÓеĻ°»á½Ðø¸üУ¬Ï£Íû´ó¼Ò²¹³äºÍ̽ÌÖ£¡£¡

ÎÒÃÇÊ×ÏÈÓ¦¸ÃÖªµÀµçÄԵĻù±¾Çé¿ö¡£µçÄÔ£¬¾ÍÊÇÒ»¶Ñ½ðÊô£¬°ëµ¼ÌåºÍËÜÁÏÖÆÆ·µÄ×ܺϣ¬Èç¹ûͨÉϵçÔ´£¬¾Í¿ÉÒÔÆô¶¯£¬µ«ÊÇÄãʲô¶¼²»ÄÜ×ö£¬ÒòΪµçÄÔÖ»ÊÇÒ»¶ÑÓ²¼þ£¬Èç¹ûÄã²»ÊÇÄÃÀ´Âô·ÏÌú£¬Ëü¼´±¿ÖØÓÖ´ÌÑÛ£¨Èç¹ûÄãµÄµçÄÔÊÇÒ»¶Ñ°×É«Íâ¿ÇµÄ»°£©¡£¿ÉÊÇΪʲôµçÄÔÄÇôµÄÎüÒýÎÒÃÇ£¿ÒòΪÓÐÁ˲Ù×÷ϵͳºÍÓ¦ÓÃÈí¼þ¡£¡¡
²Ù×÷ϵͳÊÇÒ»ÖÖÌØÊâµÄÈí¼þ£¬ÓÃÀ´ÈüÆËã»úÓ²¼þºÍÈí¼þЭͬ¹¤×÷£¬²¢ÇÒ´¦ÀíÎÒÃÇÇôò¼üÅ̺ÍÒƶ¯Êó±êÕâЩ¶¯×÷¡£³£¼ûµÄ²Ù×÷ϵͳÓÐWindows£¬ËüÓкܶà°æ±¾£»MAC¡¡OS£¬Æ»¹ûµçÄÔÉϾÍÓÃËü£»UNIX£¬ºÜ¶à´óÐÍ»ú¶¼Ê¹ÓÃÎȶ¨µÄUNIX£»Linux£¬¾ÍÊÇÎÒÃǽñÌìµÄÖ÷½Ç£¬Ò»ÖÖ¹¦ÄÜÇ¿´ó£¬ÔËÐÐÎȶ¨£¬ÐÔÄÜÓÅÒìµÄ¹«¿ªÔ´´úÂëµÄ²Ù×÷ϵͳ¡£¡¡
Ó¦ÓÃÈí¼þ£¬ÔòʵʵÔÚÔÚµÄΪÎÒÃÇÌṩ°ïÖú£¬ÎÒÃÇÓÃÍøÂçÈí¼þIEÉÏÍø£¬ÓÃÁÄÌìÈí¼þQQÁÄÌ죬ÓÃÏÂÔØÈí¼þFlashGetÏÂÔØÎÒÃÇÐèÒªµÄ×ÊÔ´¡£ÕýÊÇÒòΪÓÐÁ˸÷ÖÖ¸÷ÑùµÄÈí¼þ£¬ÎÒÃǵĵçÄԲűäµÄ·á¸»¶à²Ê¡£¡¡
µ«ÊÇÇë×¢Ò⣬ÎÒÃǸղÅ˵µÄÕâЩÈí¼þÈ«²¿Ö»ÄÜÔÚWindows²Ù×÷ϵͳϹ¤×÷¡£¿ÉÊÇWindows²Ù×÷ϵͳ¼Û¸ñ²»ì飬ÓÈÆäÊǶÔÓÚÎÒÃÇÕýÔڸ߾ٵËСƽ½¨ÉèÓÐÖйúÌØÉ«Éç»áÖ÷Òåΰ´óÆìÖÄ£¬½ôÃÜÍŽáÔÚÒÔ½­ÔóÃñ×ÜÊé¼ÇΪºËÐĵĵ³ÖÐÑëÖÜΧ£¬½â·Å˼Ï룬ʵÊÂÇóÊÇ£¬ÒÔ½­ÔóÃñ×ÜÊé¼ÇÈý¸ö´ú±íÖØҪ˼ÏëΪָµ¼£¬½¨ÉèÐÂÖйúµÄ´óѧÉúÀ´Ëµ£¬ÉÏǧԪµÄ¼Û¸ñÈÃÎÒÃÇÍû¶øÈ´²½¡£ÓÚÊdzöÏÖÁ˵Á°æ¡£¸Õ¸Õ°ä²¼µÄеİæȨ·¨¹æ¶¨£¬²»½öÏúÊÛµÁ°æµçÄÔÈí¼þÎ¥·¨£¬¹ºÂòʹÓõÁ°æÈí¼þͬÑùÊÇÒ»ÖÖÎ¥·¨ÐÐΪ¡£ÎÒÃÇÔõôÄÜÖùú¼Ò·¨ÂÉÓÚ²»¹Ë£¬Í¦¶ø×ßÏÕÈ¥¹ºÂòµÁ°æÈí¼þÄØ£¿¡¡
µ«ÊÇ£¬Ã»ÓÐWindowsµÄÊÀ½çͬÑù¾«²Ê¡£Èç¹û˵µçÄÔÊÇÒ»¿é½µØ£¬Windows¾ÍÊÇÉÏ¿ÕµÄÎÚÔÆ£¬Ö»Óаþ¿ªÎÚÔÆÎÒÃDzÅÄܼûµ½ÃÀÀöµÄÌ«Ñô¡£ÎÒÃÇ°þ¿ªÕâ¿éÎÚÔƵŤ¾ß¾ÍÊÇLinux¡£¡¡

ÄÇôµ½µ×ʲôÊÇLinuxÄØ£¿¡¡
ÔںܾúܾÃÒÔÇ°£¬70Äê´ú°É£¬ÄÇʱºòWindows»¹Ã»ÓгöÏÖ£¬UNIXÊÇÓ¦ÓÃ×î¹ã·ºµ

·µ»ØĿ¼ ÉÏÒ»Ò³ ÏÂÒ»Ò³ »Øµ½¶¥²¿ ÔÞ£¨0£© ²È£¨0£©

Äã¿ÉÄÜϲ»¶µÄ