|
Lines 87-117
Link Here
|
| 87 |
|
87 |
|
| 88 |
<para>¦Ó FreeBSD port «h¬O¥Î¤@¨ÇÀɮסA¨Ó¦Û°Ê³B²zÀ³¥Îµ{¦¡ªº¦w¸Ë¬yµ{¡C</para> |
88 |
<para>¦Ó FreeBSD port «h¬O¥Î¤@¨ÇÀɮסA¨Ó¦Û°Ê³B²zÀ³¥Îµ{¦¡ªº¦w¸Ë¬yµ{¡C</para> |
| 89 |
|
89 |
|
| 90 |
<para>Remember that there are a number of steps you would normally |
90 |
<para>½Ð°O¦í¡G¦pªG¥´ºâ¦Û¤v¨Ó½sĶªº¸Ü¡A»Ýn°õ¦æ«Ü¦h¾Þ§@¨BÆJ(¤U¸ü¡B¸ÑÀ£¡Bpatch¡B½sĶ¡B¦w¸Ë)¡C |
| 91 |
carry out if you compiled a program yourself (downloading, |
91 |
¦Ó port ©O¡A«h¬O²[»\©Ò¦³»Ýn§¹¦¨³o¨Ç¤u§@ªº¥²³Æ¨BÆJ¡A |
| 92 |
unpacking, patching, compiling, installing). The files that |
92 |
©Ò¥H¥u»Ý¥´¤@¨Ç²³æªº«ü¥O¡A¨º¨Çì©lµ{¦¡½X´N·|¦Û°Ê¤U¸ü¡B¸ÑÀ£¡Bpatch¡B½sĶ¡Aª½¦Ü¦w¸Ë§¹²¦¡C</para> |
| 93 |
make up a port contain all the necessary information to allow |
|
|
| 94 |
the system to do this for you. You run a handful of simple |
| 95 |
commands and the source code for the application is |
| 96 |
automatically downloaded, extracted, patched, compiled, and |
| 97 |
installed for you.</para> |
| 98 |
|
93 |
|
| 99 |
<para>¨Æ¹ê¤W¡Aports ¾÷¨îÁÙ¥i¥H¥Î¨Ó²£¥Í packages¡A¥H«K¥L¤H¥i¥H¥Î |
94 |
<para>¨Æ¹ê¤W¡Aports ¾÷¨îÁÙ¥i¥H¥Î¨Ó²£¥Í packages¡A¥H«K¥L¤H¥i¥H¥Î |
| 100 |
<command>pkg_add</command> ¨Ó¦w¸Ë¡A©Î¬Oµy«á·|¤¶²Ð¨ìªº¨ä¥L®M¥óºÞ²z«ü¥O¡C</para> |
95 |
<command>pkg_add</command> ¨Ó¦w¸Ë¡A©Î¬Oµy«á·|¤¶²Ð¨ìªº¨ä¥L®M¥óºÞ²z«ü¥O¡C</para> |
| 101 |
|
96 |
|
| 102 |
<para>Both packages and ports understand |
97 |
<para>¦Ó packages ¥H¤Î ports ¥¦Ì³£¬O¤@¼Ë¡A³£·|»{ <emphasis>dependencies(³nÅé¬Û¨ÌÃö«Y)</emphasis>¡C |
| 103 |
<emphasis>dependencies</emphasis>. Suppose you want to install |
98 |
°²³]¡G±z·Q¦w¸Ë¬Yµ{¦¡¡A¦ý¥¦¦³¬Û¨Ì¥t¤@Ó¤w¸Ëªº¨ç¦¡®w(library)¡A |
| 104 |
an application that depends on a specific library being |
99 |
¦Ó¦b FreeBSD ªº port ¥H¤Î package ³£¦³³oµ{¦¡¥H¤Î¸Ó¨ç¦¡®w¤F¡C |
| 105 |
installed. Both the application and the library have been made |
100 |
©Ò¥HµL½×¬O¥Î <command>pkg_add</command> «ü¥O©ÎªÌ port ¤è¦¡¨Ó¸Ë¸Óµ{¦¡¡A |
| 106 |
available as FreeBSD ports and packages. If you use the |
101 |
³o¨âªÌ(package¡Bport)³£·|¥ýÀˬd¦³¨S¦³¸Ë¸Ó¨ç¦¡®w¡AY¨S¦³´N·|¦Û°Ê¥ý¸Ë¸Ó¨ç¦¡®w¤F¡C</para> |
| 107 |
<command>pkg_add</command> command or the ports system to add |
102 |
|
| 108 |
the application, both will notice that the library has not been |
103 |
<para>³o¨âºØ§Þ³N³£«Ü¬Û¦ü¡A±z¥i¯à·|¦n©_¬°¤°»ò FreeBSD ·|§Ë¥X³o¨âºØ§Þ³N¨Ó©O¡C |
| 109 |
installed, and automatically install the library first.</para> |
104 |
¨ä¹ê¡Apackages ©M ports ³£¦³¥¦Ì¦U¦Ûªºªø³B¡A¨Ï¥Îþ¤@ºØ§¹¥þ¨ú¨M©ó±z¦Û¤vªº³ß¦n¡C</para> |
| 110 |
|
|
|
| 111 |
<para>Given that the two technologies are quite similar, you might |
| 112 |
be wondering why FreeBSD bothers with both. Packages and ports |
| 113 |
both have their own strengths, and which one you use will depend |
| 114 |
on your own preference.</para> |
| 115 |
|
105 |
|
| 116 |
<itemizedlist> |
106 |
<itemizedlist> |
| 117 |
<title>Package ¦n³B¦b©ó¡G</title> |
107 |
<title>Package ¦n³B¦b©ó¡G</title> |
|
Lines 224-252
Link Here
|
| 224 |
<para>FreeBSD ºô¯¸¤W¦³§ó·sÀWÁcªº³nÅé²M³æ¡A¦b |
214 |
<para>FreeBSD ºô¯¸¤W¦³§ó·sÀWÁcªº³nÅé²M³æ¡A¦b |
| 225 |
<ulink |
215 |
<ulink |
| 226 |
url="&url.base;/ports/index.html">http://www.FreeBSD.org/ports/</ulink>¡C |
216 |
url="&url.base;/ports/index.html">http://www.FreeBSD.org/ports/</ulink>¡C |
| 227 |
¦U ports ¬Ò¨Ì¨ä©Ê½è¦Ó¤Àªù§OÃþ¡Aand you may either |
217 |
¦U ports ¬Ò¨Ì¨ä©Ê½è¦Ó¤Àªù§OÃþ¡A¬J¥i¥H³z¹L³nÅé¦WºÙ¨Ó·j´M(¦pªGª¾¹D¦W¦rªº¸Ü)¡A |
| 228 |
search for an application by name (if you know it), or see |
218 |
¤]¥i¥H¦b¤ÀÃþ¤¤¦C¥X©Ò¦³¥i¥Îªº³nÅé¡C</para> |
| 229 |
all the applications available in a category.</para> |
|
|
| 230 |
</listitem> |
219 |
</listitem> |
| 231 |
|
220 |
|
| 232 |
<indexterm><primary>FreshPorts</primary></indexterm> |
221 |
<indexterm><primary>FreshPorts</primary></indexterm> |
| 233 |
|
222 |
|
| 234 |
<listitem> |
223 |
<listitem> |
| 235 |
<para>Dan Langille ºûÅ@ FreshPorts ºô¯¸¡Aºô§}¦b <ulink |
224 |
<para>¥Ñ Dan Langille ©ÒºûÅ@ FreshPorts ºô¯¸¡Aºô§}¦b <ulink |
| 236 |
url="http://www.FreshPorts.org/"></ulink>¡C FreshPorts |
225 |
url="http://www.FreshPorts.org/"></ulink>¡C |
| 237 |
tracks changes to the applications in the ports tree as they |
226 |
FreshPorts ·|¤£Â_°lÂÜ port tree ¤¤ªº¦UºØÅܤơA |
| 238 |
happen, allows you to <quote>watch</quote> one or more |
227 |
¤]¥i¥H°w¹ï¬Y¨Ç port ¥H¦C¤J <quote>°lÂܦW³æ(watch)</quote> ¤º¡A |
| 239 |
ports, and can send you email when they are updated.</para> |
228 |
·í¦³¥ô¦ó³nÅé¤É¯Å®É¡A´N·|µo email ´£¿ô¡C</para> |
| 240 |
</listitem> |
229 |
</listitem> |
| 241 |
|
230 |
|
| 242 |
<indexterm><primary>FreshMeat</primary></indexterm> |
231 |
<indexterm><primary>FreshMeat</primary></indexterm> |
| 243 |
|
232 |
|
| 244 |
<listitem> |
233 |
<listitem> |
| 245 |
<para>If you do not know the name of the application you want, |
234 |
<para>¦pªG¤£ª¾¹D·Q¸Ëªº³nÅé¦WºÙ¡A¨º»ò¥i³z¹L¹³¬O FreshMeat (<ulink |
| 246 |
try using a site like FreshMeat (<ulink |
235 |
url="http://www.freshmeat.net/"></ulink>) ³oÃþªººô¯¸¨Ó§ä¡A |
| 247 |
url="http://www.freshmeat.net/"></ulink>) to find an |
236 |
¦pªG§ä¨ì¤F¡A¥i¥H¦^ FreeBSD ºô¯¸¥h¬Ý¤@¤U³oÓÀ³¥Îµ{¦¡¬O§_¤w¸g³Q port ¶i¥h¤F¡C</para> |
| 248 |
application, then check back at the FreeBSD site to see if |
|
|
| 249 |
the application has been ported yet.</para> |
| 250 |
</listitem> |
237 |
</listitem> |
| 251 |
|
238 |
|
| 252 |
<listitem> |
239 |
<listitem> |
|
Lines 550-557
Link Here
|
| 550 |
<para>¨Ï¥Î <application>CVSup</application> ¬O¦w¸Ë¡B§ó·s Ports Collection ªº§Ö³t¤èªk¤§¤@¡C |
537 |
<para>¨Ï¥Î <application>CVSup</application> ¬O¦w¸Ë¡B§ó·s Ports Collection ªº§Ö³t¤èªk¤§¤@¡C |
| 551 |
Y·Q§óÁA¸Ñ <application>CVSup</application> ¥Îªkªº¸Ü¡A½Ð°Ñ¾\ <link linkend="cvsup">¨Ï¥Î CVSup</link>¡C</para> |
538 |
Y·Q§óÁA¸Ñ <application>CVSup</application> ¥Îªkªº¸Ü¡A½Ð°Ñ¾\ <link linkend="cvsup">¨Ï¥Î CVSup</link>¡C</para> |
| 552 |
|
539 |
|
| 553 |
<para>²Ä¤@¦¸¶] <application>CVSup</application> ¤§«e¡A½Ð¥ý½T»{ <filename role="directory">/usr/ports</filename> |
540 |
<para>²Ä¤@¦¸¶] <application>CVSup</application> ¤§«e¡A½Ð¥ý½T»{ <filename role="directory">/usr/ports</filename> |
| 554 |
¬OªÅªº¡I Y§A¤w¸g¸Ë¤F Ports Collection ¡A¦ý¤S¦Û¦æ¥[¤W¨ä¥L patch ÀÉ¡A¨º»ò <application>CVSup</application> |
541 |
¬OªÅªº¡I Y§A¤w¸g¸Ë¤F Ports Collection ¡A¦ý¤S¦Û¦æ¥[¤W¨ä¥L patch ÀÉ¡A¨º»ò <application>CVSup</application> |
| 555 |
¨Ã¤£·|§R°£§A¦Û¦æ¥[¤Wªº patch ÀÉ¡A³o¼Ë¥i¯à·|¾ÉPn¦w¸Ë¬Y¨Ç³nÅé®É¡Aµo¥Í patch ¥¢±Ñ©Î½sĶ¥¢±Ñ¡C</para> |
542 |
¨Ã¤£·|§R°£§A¦Û¦æ¥[¤Wªº patch ÀÉ¡A³o¼Ë¥i¯à·|¾ÉPn¦w¸Ë¬Y¨Ç³nÅé®É¡Aµo¥Í patch ¥¢±Ñ©Î½sĶ¥¢±Ñ¡C</para> |
| 556 |
|
543 |
|
| 557 |
<step> |
544 |
<step> |
|
Lines 1066-1081
Link Here
|
| 1066 |
|
1053 |
|
| 1067 |
<screen>&prompt.root; <userinput>pkg_version -v</userinput></screen> |
1054 |
<screen>&prompt.root; <userinput>pkg_version -v</userinput></screen> |
| 1068 |
|
1055 |
|
| 1069 |
<sect3 id="ports-file-updating"> |
1056 |
<sect3 id="ports-file-updating"> |
| 1070 |
<title><filename>/usr/ports/UPDATING</filename></title> |
1057 |
<title><filename>/usr/ports/UPDATING</filename></title> |
| 1071 |
|
1058 |
|
| 1072 |
<para>¨C¦¸§ó·s§¹ Ports Collection ¤§«á¡A½Ð°È¥²°O±o¦b¤É¯Å port «e¡A |
1059 |
<para>¨C¦¸§ó·s§¹ Ports Collection ¤§«á¡A½Ð°È¥²°O±o¦b¤É¯Å port «e¡A |
| 1073 |
¥ý¬Ý¬Ý <filename>/usr/ports/UPDATING</filename>¡A |
1060 |
¥ý¬Ý¬Ý <filename>/usr/ports/UPDATING</filename>¡A |
| 1074 |
³o¸Ì·|¼g¤É¯Å¤è±ªº¦U¦¡°ÝÃD¡A¤ñ¦p¡GÀɮ׮榡§ïÅÜ¡BÅܧó³]©wÀɦì¸m¡B»Pª©¤£¬Û®eªº°ÝÃDµ¥¡A |
1061 |
³o¸Ì·|¼g¤É¯Å¤è±ªº¦U¦¡°ÝÃD¡A¤ñ¦p¡GÀɮ׮榡§ïÅÜ¡BÅܧó³]©wÀɦì¸m¡B»Pª©¤£¬Û®eªº°ÝÃDµ¥¡A |
| 1075 |
¥H¤Î«ç»ò¸Ñ¨Mªº§¹¾ã¨BÆJ¡C</para> |
1062 |
¥H¤Î«ç»ò¸Ñ¨Mªº§¹¾ã¨BÆJ¡C</para> |
| 1076 |
|
1063 |
|
| 1077 |
<para>Y <filename>UPDATING</filename> ¤º®e»P§A¬Ý¨ìªº¨ä¥L¤å¥ó¦³¨Ç¤£¦P¡B¬Û½Äªº¸Ü¡A |
1064 |
<para>Y <filename>UPDATING</filename> ¤º®e»P§A¬Ý¨ìªº¨ä¥L¤å¥ó¦³¨Ç¤£¦P¡B¬Û½Äªº¸Ü¡A |
| 1078 |
¨º»ò¥H <filename>UPDATING</filename> ¬°¥D¡C</para> |
1065 |
¨º»ò¥H <filename>UPDATING</filename> ¬°¥D¡C</para> |
| 1079 |
</sect3> |
1066 |
</sect3> |
| 1080 |
|
1067 |
|
| 1081 |
<sect3 id="portupgrade"> |
1068 |
<sect3 id="portupgrade"> |