亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ports-using.html

?? FreeBSD安裝說明概述 FreeBSD 提供了一個以文字為主
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="generator" content="HTML Tidy, see www.w3.org" /><title>使用Ports Collection</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD 使用手冊" href="index.html" /><link rel="UP" title="安裝應用程序: Packages 和 Ports" href="ports.html" /><link rel="PREVIOUS" title="使用package系統" href="packages-using.html" /><link rel="NEXT" title="Post-installation Activities" href="ports-nextsteps.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /><meta http-equiv="Content-Type" content="text/html; charset=GB2312" /></head><body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"alink="#0000FF"><div class="NAVHEADER"><table summary="Header navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><th colspan="3" align="center">FreeBSD 使用手冊</th></tr><tr><td width="10%" align="left" valign="bottom"><a href="packages-using.html"accesskey="P">Prev</a></td><td width="80%" align="center" valign="bottom">Chapter 4. 安裝應用程序: Packages 和Ports</td><td width="10%" align="right" valign="bottom"><a href="ports-nextsteps.html"accesskey="N">Next</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="PORTS-USING" name="PORTS-USING">4.5. 使用PortsCollection</a></h1><p>面的章節提供了使用ports collection來安裝或卸載程序的基本用法。</p><div class="SECT2"><h2 class="SECT2"><a id="PORTS-TREE" name="PORTS-TREE">4.5.1. 獲得PortsCollection</a></h2><p>在你能使用ports之前, 你必須先獲得ports collection--本質上是 <ttclass="FILENAME">/usr/ports</tt>目錄下的一堆 <tt class="FILENAME">Makefiles</tt>,補丁,和描述文件。</p><p>在你安裝FreeBSD系統的時候,<bclass="APPLICATION">Sysinstall</b>會詢問你是否需要安裝ports collection.如果你選擇no,那你可以根據下面的指令來安裝ports collection:</p><div class="PROCEDURE"><p><b>Sysinstall 方式</b></p><p>這種方式使用<b class="APPLICATION">sysinstall</b>再次手動安裝ports collection.</p><ol type="1"><li><p>用<tt class="USERNAME">root</tt>用戶, 運行 <ttclass="COMMAND">/stand/sysinstall</tt>命令,像下面顯示的:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">/stand/sysinstall</kbd></pre></li><li><p>選擇<span class="GUIMENUITEM">Configure</span>, 按<b class="KEYCAP">Enter</b>。</p></li><li><p>選擇<span class="GUIMENUITEM">Distributions</span>, 按 <bclass="KEYCAP">Enter</b>。</p></li><li><p>選擇 <span class="GUIMENUITEM">ports</span>, 按<b class="KEYCAP">Space</b>。</p></li><li><p>選擇<span class="GUIMENUITEM">Exit</span>, 按<b class="KEYCAP">Enter</b>。</p></li><li><p>選擇你的安裝介質,就像CDROM,FTP等等</p></li><li><p>選擇<span class="GUIMENUITEM">Exit</span>并按<b class="KEYCAP">Enter</b>。</p></li><li><p>按 <b class="KEYCAP">X</b>鍵退出<b class="APPLICATION">sysinstall</b>。</p></li></ol></div><p>The alternative method to obtain and keep your ports collection up to date is by using<b class="APPLICATION">CVSup</b>. Look at the ports <b class="APPLICATION">CVSup</b>file, <tt class="FILENAME">/usr/share/examples/cvsup/ports-supfile</tt>. See <ahref="cvsup.html">Using CVSup</a> (<a href="cvsup.html">Section A.5</a>) for moreinformation on using <b class="APPLICATION">CVSup</b> and this file.</p><div class="PROCEDURE"><p><b>CVSup Method</b></p><p>This is a quick method for getting the ports collection using <bclass="APPLICATION">CVSup</b>. If you want to keep your ports tree up to date, or learnmore about <b class="APPLICATION">CVSup</b>, read the previously mentioned sections.</p><ol type="1"><li><p>Install the <a href="http://www.FreeBSD.org/cgi/url.cgi?ports/net/cvsup/pkg-descr"><ttclass="FILENAME">net/cvsup</tt></a> port. See <a href="cvsup.html#CVSUP-INSTALL">CVSupInstallation</a> (<a href="cvsup.html#CVSUP-INSTALL">Section A.5.2</a>) for moredetails.</p></li><li><p>As <tt class="USERNAME">root</tt>, copy <ttclass="FILENAME">/usr/share/examples/cvsup/ports-supfile</tt> to a new location, such as<tt class="FILENAME">/root</tt> or your home directory.</p></li><li><p>Edit <tt class="FILENAME">ports-supfile</tt>.</p></li><li><p>Change <var class="REPLACEABLE">CHANGE_THIS.FreeBSD.org</var> to a <bclass="APPLICATION">CVSup</b> server near you. See <ahref="cvsup.html#CVSUP-MIRRORS">CVSup Mirrors</a> (<ahref="cvsup.html#CVSUP-MIRRORS">Section A.5.7</a>) for a complete listing of mirrorsites.</p></li><li><p>Run <tt class="COMMAND">cvsup</tt>:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cvsup -g -L 2 <varclass="REPLACEABLE">/root/ports-supfile</var></kbd></pre></li><li><p>Running this command later will download and apply all the recent changes to yourports collection, except actually rebuilding the ports for your own system.</p></li></ol></div></div><div class="SECT2"><h2 class="SECT2"><a id="PORTS-SKELETON" name="PORTS-SKELETON">4.5.2. InstallingPorts</a></h2><p>The first thing that should be explained when it comes to the ports collection is whatis actually meant by a ``skeleton''. In a nutshell, a port skeleton is a minimal set offiles that tell your FreeBSD system how to cleanly compile and install a program. Eachport skeleton includes:</p><ul><li><p>A <tt class="FILENAME">Makefile</tt>. The <tt class="FILENAME">Makefile</tt> containsvarious statements that specify how the application should be compiled and where itshould be installed on your system.</p></li><li><p>A <tt class="FILENAME">distinfo</tt> file. This file contains information about thefiles that must be downloaded to build the port and their checksums, to verify that fileshave not been corrupted during the download using <span class="CITEREFENTRY"><spanclass="REFENTRYTITLE">md5</span>(1)</span>.</p></li><li><p>A <tt class="FILENAME">files</tt> directory. This directory contains patches to makethe program compile and install on your FreeBSD system. Patches are basically small filesthat specify changes to particular files. They are in plain text format, and basicallysay ``Remove line 10'' or ``Change line 26 to this ...''. Patches are also known as``diffs'' because they are generated by the <span class="CITEREFENTRY"><spanclass="REFENTRYTITLE">diff</span>(1)</span> program.</p><p>This directory may also contain other files used to build the port.</p></li><li><p>A <tt class="FILENAME">pkg-descr</tt> file. This is a more detailed, oftenmultiple-line, description of the program.</p></li><li><p>A <tt class="FILENAME">pkg-plist</tt> file. This is a list of all the files that willbe installed by the port. It also tells the ports system what files to remove upondeinstallation.</p></li></ul><p>Some ports have other files, such as <tt class="FILENAME">pkg-message</tt>. The portssystem uses these files to handle special situations. If you want more details on thesefiles, and on ports in general, check out the <a href="../porters-handbook/index.html"target="_top">FreeBSD Porter's Handbook</a>.</p><p>Now that you have enough background information to know what the ports collection isused for, you are ready to install your first port. There are two ways this can be done,and each is explained below.</p><p>Before we get into that, however, you will need to choose a port to install. There area few ways to do this, with the easiest method being the <ahref="../../../../ports/index.html" target="_top">ports listing on the FreeBSD website</a>. You can browse through the ports listed there or use the search function on thesite. Each port also includes a description so you can read a bit about each port beforedeciding to install it.</p><p>Another method is to use the <span class="CITEREFENTRY"><spanclass="REFENTRYTITLE">whereis</span>(1)</span> command. Simply type <ttclass="COMMAND">whereis <var class="REPLACEABLE">file</var></tt>, where <varclass="REPLACEABLE">file</var> is the program you want to install. If it is found on yoursystem, you will be told where it is, as follows:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">whereis lsof</kbd>lsof: /usr/ports/sysutils/lsof</pre><p>This tells us that <tt class="COMMAND">lsof</tt> (a system utility) can be found inthe <tt class="FILENAME">/usr/ports/sysutils/lsof</tt> directory.</p><p>Yet another way to find a particular port is by using the ports collection's built-insearch mechanism. To use the search feature, you will need to be in the <ttclass="FILENAME">/usr/ports</tt> directory. Once in that directory, run <ttclass="COMMAND">make search name=<var class="REPLACEABLE">program-name</var></tt> where<var class="REPLACEABLE">program-name</var> is the name of the program you want to find.For example, if you were looking for <tt class="COMMAND">lsof</tt>:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /usr/ports</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">make search name=lsof</kbd>Port:   lsof-4.56.4Path:   /usr/ports/sysutils/lsofInfo:   Lists information about open files (similar to fstat(1))Maint:  obrien@FreeBSD.orgIndex:  sysutilsB-deps: R-deps:</pre><p>The part of the output you want to pay particular attention to is the ``Path:'' line,since that tells you where to find the port. The other information provided is not neededin order to install the port, so it will not be covered here.</p><p>For more in-depth searching you can also use <tt class="COMMAND">make search key=<varclass="REPLACEABLE">string</var></tt> where <var class="REPLACEABLE">string</var> is sometext to search for. This searches port names, comments, descriptions and dependencies andcan be used to find ports which relate to a particular subject if you don't know the nameof the program you are looking for.</p><p>In both of these cases, the search string is case-insensitive. Searching for ``LSOF''will yield the same results as searching for ``lsof''.</p><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> You must be logged in as <tt class="USERNAME">root</tt> to installports.</p></blockquote></div><p>Now that you have found a port you would like to install, you are ready to do theactual installation. The port includes instructions on how to build source code, but doesnot include the actual source code. You can get the source code from a CD-ROM or from theInternet. Source code is distributed in whatever manner the software author desires.Frequently this is a tarred and gzipped file, but it might be compressed with some othertool or even uncompressed. The program source code, whatever form it comes in, is calleda ``distfile''. You can get the distfile from a CD-ROM or from the Internet.</p><div class="SECT3"><h3 class="SECT3"><a id="PORTS-CD" name="PORTS-CD">4.5.2.1. Installing Ports from aCD-ROM</a></h3><p>The FreeBSD Project's official CD-ROM images no longer include distfiles. They take upa lot of room that is better used for precompiled packages. CD-ROM products such as theFreeBSD PowerPak do include distfiles, and you can order these sets from a vendor such asthe <a href="http://www.freebsdmall.com/" target="_top">FreeBSD Mall</a>. This sectionassumes you have such a FreeBSD CD-ROM set.</p><p>Place your FreeBSD CD-ROM in the drive. Mount it on <tt class="FILENAME">/cdrom</tt>.(If you use a different mount point, the install will not work.) To begin, change to thedirectory for the port you want to install:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /usr/ports/sysutils/lsof</kbd></pre><p>Once inside the <tt class="FILENAME">lsof</tt> directory, you will see the portskeleton. The next step is to compile, or ``build'', the port. This is done by simplytyping <tt class="COMMAND">make</tt> at the prompt. Once you have done so, you should seesomething like this:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">make</kbd>&gt;&gt; lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.&gt;&gt; Attempting to fetch from file:/cdrom/ports/distfiles/.===&gt;  Extracting for lsof-4.57...[extraction output snipped]...&gt;&gt; Checksum OK for lsof_4.57D.freebsd.tar.gz.===&gt;  Patching for lsof-4.57===&gt;  Applying FreeBSD patches for lsof-4.57===&gt;  Configuring for lsof-4.57...[configure output snipped]...===&gt;  Building for lsof-4.57...[compilation output snipped]...

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久国产精品麻豆| 经典三级视频一区| 免费观看91视频大全| 豆国产96在线|亚洲| 欧美日韩精品综合在线| 国产日韩欧美不卡| 免费av成人在线| 在线视频你懂得一区二区三区| 精品国产一区二区三区不卡 | 国产精品白丝av| 97精品国产97久久久久久久久久久久 | 亚洲欧洲精品一区二区精品久久久| 亚洲国产中文字幕在线视频综合| 国产成人自拍网| 欧美一二三区在线观看| 一区二区三区精品| 99久久精品免费观看| 精品国产免费一区二区三区四区| 亚洲成精国产精品女| 97成人超碰视| 中文字幕亚洲一区二区av在线| 精品制服美女丁香| 日韩视频在线永久播放| 国产一区三区三区| 91精品国产欧美一区二区| 一区二区三区欧美日| av电影一区二区| 国产精品二三区| 成人黄色免费短视频| 国产喂奶挤奶一区二区三区| 久久成人综合网| 日韩欧美一级片| 美女www一区二区| 欧美一区二区成人6969| 日韩av网站免费在线| 6080日韩午夜伦伦午夜伦| 亚洲成人激情社区| 欧美日韩精品电影| 丝袜国产日韩另类美女| 3d动漫精品啪啪1区2区免费| 日韩中文字幕1| 日韩免费性生活视频播放| 男人的天堂久久精品| 精品88久久久久88久久久| 久久精工是国产品牌吗| 亚洲精品在线观看网站| 国产91精品一区二区| 国产精品无码永久免费888| 99久久综合99久久综合网站| 综合网在线视频| 欧美日韩精品高清| 久久99国产精品免费| 久久精品夜色噜噜亚洲a∨| 成人精品视频.| 亚洲激情综合网| 欧美一区二区私人影院日本| 激情六月婷婷综合| 亚洲日本va在线观看| 欧美制服丝袜第一页| 免费欧美在线视频| 欧美国产1区2区| 欧美又粗又大又爽| 久久狠狠亚洲综合| 中文字幕一区二区三区不卡| 欧美日韩午夜影院| 国产在线视视频有精品| 亚洲三级在线免费观看| 91精品久久久久久久91蜜桃| 国产成人av福利| 亚洲成人免费在线观看| 国产性天天综合网| 欧美日韩国产天堂| 国产成人免费视| 亚洲国产你懂的| 国产欧美一区二区精品仙草咪| 91黄色免费看| 国产成人啪免费观看软件| 亚洲午夜精品在线| 日本一区二区综合亚洲| 91精品国产综合久久精品| 成人av网址在线| 免费精品视频在线| 亚洲精品福利视频网站| 国产夜色精品一区二区av| 精品视频在线视频| 99久久精品情趣| 国产精品一级在线| 人人精品人人爱| 亚洲综合免费观看高清完整版 | 色系网站成人免费| 精久久久久久久久久久| 亚洲国产精品一区二区久久恐怖片| 亚洲影视在线观看| 欧美国产日本视频| 日韩欧美亚洲国产精品字幕久久久| 91天堂素人约啪| 国产成人免费av在线| 久久成人久久鬼色| 日韩国产成人精品| 亚洲女子a中天字幕| 欧美国产丝袜视频| 国产视频一区在线播放| 日韩欧美国产成人一区二区| 欧美剧情片在线观看| 欧美亚洲国产bt| 色天使色偷偷av一区二区| 波多野结衣亚洲| 成人激情文学综合网| 成人午夜伦理影院| 大尺度一区二区| 国产高清成人在线| 丰满亚洲少妇av| 国产激情精品久久久第一区二区 | 国产精品国产三级国产aⅴ入口| www成人在线观看| 精品国产一区二区三区忘忧草| 欧美日本视频在线| 欧美视频一二三区| 欧美夫妻性生活| 91精品国产综合久久久蜜臀粉嫩| 欧美日韩一区在线| 91精品在线观看入口| 欧美一级一区二区| 26uuu国产日韩综合| 国产欧美日韩在线观看| 中文字幕av资源一区| 国产精品久久久久久久裸模 | 极品少妇xxxx精品少妇偷拍| 久久不见久久见免费视频7| 久久99精品国产麻豆不卡| 国产麻豆精品视频| 岛国精品在线播放| 91丨porny丨最新| 欧美色大人视频| 91精品国产日韩91久久久久久| 91精品国产一区二区| 精品国产一区久久| 国产精品污网站| 亚洲欧美日韩人成在线播放| 亚洲国产精品久久久久婷婷884| 日韩精品乱码免费| 国产一区二区三区免费播放| youjizz国产精品| 欧美日韩日日骚| 亚洲精品一区二区三区香蕉| 国产精品视频观看| 天天色天天操综合| 国产美女在线精品| 91久久精品国产91性色tv| 7878成人国产在线观看| 国产亚洲精品免费| 亚洲制服丝袜一区| 国产精品一区二区在线看| 99精品一区二区三区| 欧美人牲a欧美精品| 欧美国产一区二区在线观看| 亚洲成av人片一区二区三区 | 国产偷v国产偷v亚洲高清| 亚洲激情一二三区| 国产在线国偷精品产拍免费yy| 91麻豆国产福利精品| 日韩视频永久免费| 亚洲激情图片qvod| 欧美日韩精品一区二区天天拍小说| 日韩一级免费观看| 一区二区三区视频在线看| 精品亚洲免费视频| 欧美三级在线播放| 中文字幕一区二区三区精华液| 日本大胆欧美人术艺术动态| 99九九99九九九视频精品| 精品国产伦一区二区三区观看体验 | 国产91富婆露脸刺激对白| 欧美精品三级在线观看| 国产精品乱人伦| 国产乱码字幕精品高清av| 在线电影一区二区三区| 亚洲欧美激情插| 高清国产一区二区三区| 日韩精品一区二区三区视频| 亚洲综合视频网| 91麻豆福利精品推荐| 欧美高清在线视频| 精品一二线国产| 日韩欧美久久久| 奇米888四色在线精品| 欧美色男人天堂| 一区二区理论电影在线观看| 成人少妇影院yyyy| 久久精品综合网| 精品一区二区三区视频| 91精品国产91热久久久做人人| 亚洲精品日日夜夜| 91亚洲精品久久久蜜桃| 国产精品国产三级国产普通话蜜臀| 极品少妇xxxx偷拍精品少妇| 精品国产一区二区三区四区四| 蜜乳av一区二区三区| 欧美一区二区三区在线观看| 秋霞电影网一区二区|