dpkgÊÇDebianµÄÖм¶Èí¼þ°ü¹ÜÀíÆ÷,ÀàËÆRPM.
dpkgÊÇDebianÈí¼þ°ü¹ÜÀíϵͳµÄÖÐÁ÷íÆÖù,¸ºÔð°²È«Ð¶ÔØÈí¼þ°ü,ÅäÖÃ,ÒÔ¼°Î¬»¤ÒÑ°²×°µÄÈí¼þ°ü.Ò²ÊÇDebianϵͳÖÐÖÚ¶àÈí¼þ°ü¹ÜÀí¹¤¾ßµÄºó¶Ë.
ϵͳÖÐËùÓÐpackagesµÄÐÅÏ¢¶¼ÔÚ/var/lib/dpkg/Ŀ¼ÏÂ,ÆäÖÐ×ÓĿ¼¡±/var/lib/dpkg/info¡±ÓÃÓÚ±£´æ¸÷¸öÈí¼þ°üµÄÅäÖÃÎļþÁбí.
.conffiles ¼Ç¼ÁËÈí¼þ°üµÄÅäÖÃÎļþÁбí
.list ±£´æÈí¼þ°üÖеÄÎļþÁбí,Óû§¿ÉÒÔ´Ó.listµÄÐÅÏ¢ÖÐÕÒµ½Èí¼þ°üÖÐÎļþµÄ¾ßÌ尲װλÖÃ.
.md5sums ¼Ç¼ÁËÈí¼þ°üµÄmd5ÐÅÏ¢,Õâ¸öÐÅÏ¢ÊÇÓÃÀ´½øÐаüÑéÖ¤µÄ.
.prerm ½Å±¾ÔÚDebian±¨½â°ü֮ǰÔËÐÐ,Ö÷Òª×÷ÓÃÊÇÍ£Ö¹×÷ÓÃÓÚ¼´½«Éý¼¶µÄÈí¼þ°üµÄ·þÎñ,Ö±µ½Èí¼þ°ü°²×°»òÉý¼¶Íê³É.
.postinst½Å±¾ÊÇÍê³ÉDebian°ü½â¿ªÖ®ºóµÄÅäÖù¤×÷,ͨ³£ÓÃÓÚÖ´ÐÐËù°²×°Èí¼þ°üÏà¹ØÃüÁîºÍ·þÎñÖØÐÂÆô¶¯.
/var/lib/dpkg/availableÎļþµÄÄÚÈÝÊÇÈí¼þ°üµÄÃèÊöÐÅÏ¢,¸ÃÈí¼þ°üÀ¨µ±Ç°ÏµÍ³ËùʹÓõÄDebian°²×°Ô´ÖеÄËùÓÐÈí¼þ°ü,ÆäÖаüÀ¨µ±Ç°ÏµÍ³ÖÐÒÑ°²×°µÄºÍδ°²×°µÄÈí¼þ°ü.
dpkg
²éѯÒÔ°²×°µÄÐÅÏ¢
²éѯµ±Ç°ÏµÍ³ËùÓÐÒÑ°²×°µÄdeb°ü
dpkg -l ÃüÁîÓÃÓÚ²éѯµ±Ç°ÏµÍ³ËùÓÐÒÔ°²×°µÄdeb°üµÄÐÅÏ¢.,ͨ¹ýlessºÍgrep¿ÉÒÔÖ´Ðиü¸´ÔӵIJéѯ¹¤×÷.
ÀýÈç²éÕÒ¸úvimÓйصÄÈí¼þ°ü,dpkg -l |grep -ivim
(Èç·¢ÏÖiU ±íʾÈí¼þ°üδ°²×°³É¹¦,ii±íʾ°²×°³É¹¦)
²é¿´ÒÑ°²×°Èí¼þ°üµÄÏêϸÇé¿ö
dpkg -s ÃüÁî²é¿´Èí¼þ°üµÄÏêϸÇé¿ö,°üÀ¨°æ±¾,ÒÀÀµÖ®ÀàµÄ
²éѯϵͳÖÐËù°²×°Èí¼þ°üËù°²×°µÄÎļþ
dpkg -L ÃüÁîÓÃÓÚ²éѯϵͳÖÐËù°²×°Èí¼þ°üµÄ°²×°µÄÎļþ°²×°µ½ÏµÍ³µÄλÖúͰ²×°ÁËÄÇЩ.
СÌáʾ: ÈçºÎ¿ÉÒÔ¿´Èí¼þ°ü×°µ½ÄĸöµØ·½?
ÓÃapt-get install *
ÈçºÎ¿ÉÒÔ¿´Èí¼þ°ü×°µ½ÄĸöµØ·½?
dpkg -L package-name|more
²éѯϵͳÖÐij¸öÎļþÊôÓÚÄǸöÈí¼þ°ü
dpkg -S ÃüÁîÓÃÓÚÁ˽⵱ǰµÄÈí¼þÊôÓÚÄǸöÈí¼þ°ü
²éѯδ°²×°µÄÐÅÏ¢
²éѯδ°²×°Èí¼þ°üÏêϸÐÅÏ¢
dpkg -I ÃüÁîÓÃÓڲ鿴δ°²×°Èí¼þ°üµÄÏêϸÐÅÏ¢,ÒÔ±ãÁ˽â¸ÃÈí¼þ°üÊÇ·ñÐèÒª°²×°.
²éѯdeb°üÎļþÖÐËù°üº¬µÄÎļþ
dpkg -c ÏÔʾδ°²×°debÈí¼þ°üËù°üº¬µÄÎļþÁбí,ÒÔ¼°°²×°Î»ÖÃ
°²×°Èí¼þ°ü
°²×°debÈí¼þ°ü
dpkg -i ÊÖ¹¤°²×°deb°üµ½ÏµÍ³ÖÐ,²»¹ýÓÐʱ»á´æÔÚDpends¹Øϵ,½¨ÒéʹÓÃapt-get À´°²×°.
Èç¹ûͨ¹ýdpkg -i°²×°Èí¼þºóÓÉÓÚDpends¹ØϵûÓа²×°³É¹¦,¿Éͨ¹ýapt-get -f install½â¾ö
½â¾ödpkg -i °²×°deb°ü³öÏÖDpendsÎÊÌâ
apt-get -f install ½â¾öDpendsÎÊÌâ.
ÀýÈç:dpkg -i lftp_3.1.3-1_i386.deb
Selecting previously deselected package lftp.
(Reading database ¡ 20654 files and directories currently installed.)
unpacking lftp (from lftp_3.1.3-1_i386.deb)¡
dpkg:dependency problems prevent configuration of lftp:
ftp depends on libexpat1 (<=1.95.8);however
dpkg : error processing lftp (--install)
dependency problems -leaving unconfigured
Errors were encountered while processing:
lftp
//lftpÈí¼þ°ü°²×°Ê§°Ü
dpkg -l |grep lftp
iU lftp 3.1.3-1 Sophisticated
command-line FTP/HTTP client p
//¡±dpkg -l¡± ²éѯÐÅÏ¢±íʾlftpÈí¼þ°üδ°²×°³É¹¦
(iU±íʾδ°²×°³É¹¦,ii±íʾ°²×°³É¹¦)
ʹÓÃapt-get -f install½â¾ö
жÔØdebÈí¼þ°ü
жÔØdeb°ü
dpkg -rÓÃÓÚжÔØÖ¸¶¨µÄÈí¼þ°ü,¸ÃÃüÁîֻжÔØÈí¼þ°ü°²×°µ½ÏµÍ³ÖеÄÎļþ,¶ø²»È¥É¾³ýÈí¼þ°üµÄÅäÖÃÎļþ,Òò´Ë²»ÊÇÍêÈ«ÒâÒåÉϵÄжÔØ.µ«ÊÇÈí¼þ°ü±£´æÔÚϵͳÖÐ,¿ÉÒÔÌṩ¸øÒÔºóÔÚ°²×°Èí¼þ°üʱʹÓÃ.
ÀýÈç:dpkg -r prozilla ÒƳýºóÔÙÓÃdpkg -l |grep prozilla ²é¿´
»á¿´µ½rc proc 1.3.6-3woody3 multi-thraded download accelerator
±íʾÈí¼þ°üÒѾ±»Ð¶ÔØ,µ«ÅäÖÃÎļþÈÔÔÚ¡°rc¡±´ø±íÅäÖÃÎļþÈÔÔÚ.
жÔØÈí¼þ°ü²¢Çå³ýÅäÖÃÎļþ
dpkg -P ÓÃÓÚжÔØÈí¼þ°üͬʱҲɾ³ýÅäÖÃÎļþ,dpkg -P ²»Äܽâ¾öDpendsÎÊÌâ,½¨ÒéжÔØʱʹÓÃapt-get²Ù×÷
ÖØÐÂÅäÖÃÈí¼þ°ü
¶ÔÓÚDebianϵͳÖеÄÖÚ¶àÈí¼þ°ü(ÓÈÆäÊÇϵͳºÍ·þÎñÆ÷Èí¼þ°ü)À´Ëµ,ÔÚµÚÒ»´Î°²×°¸ÃÈí¼þ°üʱºò»áÏÔʾ¶Ô»°¿ò´°¿Ú,ÌáʾÓû§ÊäÈë±ØÒªµÄÅäÖÃÐÅÏ¢.µ±Óû§ÐèÒªÔٴζÔÈí¼þ°üÅäÖõÄʱºò,¿ÉÒÔʹÓÃdpkg-reconfigureÀ´¶ÔÖ¸¶¨µÄÈí¼þ°ü½øÐÐÅäÖÃ.
±ÈÈçdpkg-reconfigure locales
ÓÃÓÚÅäÖÃÓïÑÔ
alien°üת»»¹¤¾ß
Èç¹ûÎÒÃÇÓкÜϲ»¶µÄRPM°ü,¶øÓÖûÓÐdeb°æ±¾
Ôõô°ì~?
¿ÉÒÔͬ¹ýalienÀ´×ª»»»òÕßÖ±½Ó°²×°,Õâ¸öС¼Ò»ï¿ÉÊǸöºÜ·½±ãµÄ¶«Î÷!
»ù±¾ÃüÁîÈçÏÂ:
Ê×ÏÈͨ¹ýapt-get install alienÀ´°²×°.
È»ºóalien -i name-of-the-pakage.rpm /*ÓÃÀ´Ö±½Ó°²×°rpm°ü
alien -d , --to-deb /*Make debian packages,This is the default
Àý:alien -d package.rpm
alien -r , --to-rpm /*Make rpm packages
Àý:alien -r package.deb
alien -p , --to-pkg /*Make Solaris pkg packages
alien --to-slp /*Make slp packages
alien -t , --to-tgz /*Make tgz packages
alien -T ¼ì²â
linux289 ÓÚ 2007-07-30 16:24:19·¢±í:
:ha3nd
Debian ÓÚ 2007-07-28 00:56:47·¢±í:
:ha3nd
±±´°ÓÎ¿Í ÓÚ 2007-07-27 10:02:43·¢±í:
ÊÕ²ØÁË