Introduction of installation and Operation CVSup method in FreeBSD

Source: Internet
Author: User

First, install the CVSup method

Before you run CVSup for the first time, make sure/usr/ports is empty! If you have previously installed a Ports suite elsewhere, CVSup may not automatically delete patches that have been deleted on the upstream server.

1. Install the Net/cvsup-without-gui package:
# Pkg_add-r Cvsup-without-gui See how to install CVSup (§ a.5.2) for more details.

2. Run CVSup:

The code is as follows Copy Code
# cvsup-l 2-h CVSup. Freebsd.org/usr/share/examples/cvsup/ports-supfile

The above parameters please see here will be cvsup. Freebsd.org to the CVSup server closer to you. See the complete list of mirrored sites in CVSup mirrors (§ a.5.7).

Note: Sometimes you might want to use your own ports-supfile, for example, not wanting to specify the CVSUP server that you use each time through the command line.

A. In this case, you need to copy the/usr/share/examples/cvsup/ports-supfile to a new location, such as/root or your home directory, as root.
B. Editorial Ports-supfile.
C. Put the change_this. Freebsd.org modified to a CVSup server that is closer to you. You can refer to the complete list of mirrored sites in CVSup mirrors (§ a.5.7).
D. Next, run the CVSup as follows:

The code is as follows Copy Code
# cvsup-l 2/root/ports-supfile3

After that, running the CVSup (1) command downloads the most recent changes and applies them to your Ports Collection, but the process does not rearrange the Ports on your system.


running CVSup in FreeBSD

You are now ready to try the upgrade. The command is simple:

# CVSup Supfilesupfile's position is of course the Supfile filename you just created. If you run under X11, CVSup will display a GUI window with buttons to do normal things. Press the Go button, and then watch it run.

Now seems to use csup This command more, faster than with CVSup, the syntax is almost the same, the command keyword replacement can be

The code is as follows Copy Code

Csup-g-l2-h Cvsup4.freebsdchina.org/usr/share/examples/cvsup/ports-supfile

In this example you are going to upgrade your current/USR/SRC tree, and you will need to run the program with Root so that CVSup has the required permissions to update your files. It is understandable that you have just created your profile and have never used it before. There is an easy way to do a pilot run without changing your current file. Simply create an empty directory at a convenient location and specify it as an additional parameter on the command line:

The code is as follows Copy Code
# Mkdir/var/tmp/dest
# CVSup Supfile/var/tmp/dest

The directory you specify is the destination path for all file updates. CVSup will check your files in/usr/src, but will not modify or delete them. Any file updates will be put in the/var/tmp/dest/usr/src. Running CVSup in this way also keeps its base directory state file intact. A new version of these files will be written to the specified directory. Because you have read access to the/USR/SRC directory, performing this pilot run does not even require the use of root users.

If you are not running X11 or dislike the GUI, you need to add two options at the command line when you run CVSup:

The code is as follows Copy Code
# CVSUP-G-L 2 supfile-g

Tell CVSup not to use the GUI. If you are not running X11 this is automatic, otherwise you must specify it.

-L 2 tells CVSup the details of all the files being upgraded. There are three levels to choose from-L 0 to-L 2. The default is 0, which means that nothing is exported except for the error message.

There are a number of other options available. Want a short list, enter Cvsup-h. To see a more detailed description, see the man page.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.