更新FreeBSD端起收藏最新和後
CVSup可以使用作為一個快的方法為得到口岸彙集和保持口岸樹最新。 CVSup在一個遠程服務器主人分佈并且更新來源樹從一間大師CVS貯藏庫。 FreeBSD來源在一間CVS貯藏庫在一個中央發展機器被維護在加利福尼亞。 與CVSup, FreeBSD用戶能容易地保持他們自己的來源樹最新。
CVSup使用所謂的拉扯模型更新。 在拉扯模型之下,每個客戶請求服務器更新,如果和當他們被要。 服務器被動地等更新請求從它的客戶。 因而所有更新由客戶鼓動。 服務器從未送未經請求的更新。 用戶必須或者手工跑CVSup客戶得到更新,或者他們必須設定cron工作自動地跑它經常
有少量方式安裝CVSup在FreeBSD :
- 安裝CVSup通過使用precompiled網或cvsup包裹從FreeBSD包裹彙集
- 修造CVSup從來源通過使用包括CVSup GUI)的網或cvsup口岸(。 警告: 網或cvsup口岸取決於Modula3系統,需要堅固時間和磁盤空間對下載和修造。
如果CVSup在沒有XFree86的機器安裝? 或Xorg安裝了,例如服務器,使用不包括CVSup GUI、網或者cvsup沒有gui的口岸。
例如,
# pkg_add - r cvsup沒有gui
或修造從口岸彙集在網或cvsup沒有gui。
在安裝以後, CVSup準備好,并且可以執行以以下命令:
# cvsup - L 2 - h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
那裡cvsup.FreeBSD.org是更換的CVSup服務器是對CVSup服務器的變動在您附近。 看見 CVSup鏡子 為鏡子站點一個完全目錄。
用您自己的supfile名字和地點替換/root/ports-supfile。
- L 2告訴它做着的CVSup打印出來所有文件更新細節。 有冗長的三個水平,從- L 0 - L 2。 缺省是0,意味總沈默除了錯誤信息。
當-時h指定supfile地點。
創造一個配置文件為了CVSup能避免通過CVSup服務器的需要在命令行也是可能的。 CVSup的操作是由稱supfile的配置文件控制的。 有一些樣品supfiles在目錄/usr/share/examples/cvsup/。
作為根,複製/usr/share/examples/cvsup/ports-supfile到一個新的地點,例如/root或您的主目錄。
編輯口岸supfile。
Change CHANGE_THIS.FreeBSD.org to a CVSup server near you. See CVSup Mirrors for a complete listing of mirror sites.
To run cvsup by using the supfile, use the following as root, so that cvsup has the permissions it needs to update your files:
# cvsup -L 2 /root/ports-supfile
Replace /root/ports-supfile with your own supfile name and location.
The -L 2 tells CVSup to print out the details of all the file updates it is doing. There are three levels of verbosity, from -L 0 to -L 2. The default is 0, which means total silence except for error messages.
If you are not running X11 or if you just do not like GUIs, you should add a couple of options to the command line when you run cvsup and your CVSup is installed with GUI:
# cvsup -g -L 2 supfile
Replace supfile with your own supfile name and location.
The -g tells CVSup not to use its GUI. This is automatic if you are not running X11, but otherwise you have to specify it.
Running the CVSup command later will download and apply all the recent changes to your Ports Collection, except actually rebuilding the ports for your own system.
IMPORTANT: This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- Update FreeBSD Ports Collection to Latest Version with Security Update with Portmanager and Portaudit
- Easy Way to Upgrade FreeBSD’s Ports
- Searching for Application in FreeBSD’s Ports Collection
- Using Portsnap to Update FreeBSD Ports Tree Collection
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3
- Portdowngrade - Downgrade to Previous Version of FreeBSD’s Ports
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 1
- FreeBSD 6.0 on VMware Server Time and Clock Slow Down
- Checking Free Disk Space on FreeBSD Server
























January 3rd, 2006 16:17
[...] Before you can update and upgrade the FreeBSD’s ports, the Ports Collection needs to be updated. Follow step here to update the Ports Collection. [...]
May 18th, 2006 22:30
[...] Portmanager is an FreeBSD utility that automates the process of upgrading and managing installed FreeBSD ports without or almost without user intervention when updating. Portmanager ensures that FreeBSD installed ports accurately reflect and update as of those available in the ports tree. To use portmanager, the FreeBSD ports collection tree needs to be updated with CVSup or Portsnap. [...]
June 21st, 2006 13:06
[...] CVSup can be used as a quick method for getting the Ports Collection and keep the ports tree up to date. CVSup distributes and updates source trees from a master CVS repository on a remote server host. The FreeBSD sources are maintained in a CVS repository on a central development machine in California. With CVSup, FreeBSD users can easily keep their own source trees up to date. CVSup uses the so-called pull model of updating. Under the pull model, each client asks the server for updates, if and when they are wanted. The server waits passively for update requests from its clients. Thus all updates are instigated by the client. The server never sends unsolicited updates. Users must either run the CVSup client manually to get an update, or they must set up a cron job to run it automatically on a regular basis There are few ways to install CVSup in FreeBSD: Install CVSup by using the precompiled net/cvsup package from the FreeBSD packages collection. To install from package collection. # pkg_add -r cvsup-without-gui# cd /usr/ports/net/cvsup-without-gui # make install clean Or build CVSup from source by using the net/cvsup port (which includes CVSup GUI). Warning: the net/cvsup port depends on the Modula-3 system, which takes a substantial amount of time and disk space to download and build. To build from source. After installing, CVSup is ready and can be executed with the following command: # cvsup -L 2 -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile Change cvsup.FreeBSD.org to a CVSup server near you. See CVSup Mirrors for a complete listing of mirror sites. The -L 2 tells CVSup to print out the details of all the file updates it is doing. There are three levels of verbosity, from -L 0 to -L 2. The default is 0, which means total silence except for error messages. While -h specify the supfile location. You may want to use your own ports-supfile, for example to avoid the need of passing the CVSup server on the command line. As root, copy /usr/share/examples/cvsup/ports-supfile to a new location, such as /root or your home directory. #cp /usr/share/examples/cvsup/ports-supfile /root Edit ports-supfile #vi /root/ports-supfile Change CHANGE_THIS.FreeBSD.org to a CVSup server near you. See CVSup Mirrors for a complete listing of mirror sites.Then, you can update your port collections with this command: # cvsup -L 2 /root/ports-supfile links: freebsd.org mydigitallife.info [...]