Update FreeBSD Using Proxy Server (csup / portsnap proxy update)

Update FreeBSD Using Proxy Server (csup / portsnap proxy update)

To update a FreeBSD system using a proxy server, you can use the csup command for updating the system's source tree, or the portsnap command for updating the system's ports tree.

Here are the steps to update a FreeBSD system using a proxy server:

  1. Open a terminal window and log in to the system as the root user.

  2. Edit the /etc/make.conf file and add the following lines to configure the proxy server for csup and portsnap:

‮t refer‬o:lautturi.com
FETCH_ENV=http_proxy=http://<proxy-server>:<port>/
FTP_ENV=ftp_proxy=http://<proxy-server>:<port>/

Replace <proxy-server> and <port> with the hostname and port number of your proxy server, respectively.

  1. To update the system's source tree using csup, run the following command:
csup -L 2 -z -h <proxy-server> <supfile>

Replace <proxy-server> with the hostname of your proxy server, and <supfile> with the path to the supfile for the source tree you want to update (e.g., /root/stable-supfile).

  1. To update the system's ports tree using portsnap, run the following command:
portsnap -p <proxy-server>:<port> fetch extract

Replace <proxy-server> and <port> with the hostname and port number of your proxy server, respectively.

For more information about using csup and portsnap to update a FreeBSD system, you can consult the documentation for these commands or visit the FreeBSD website.

Created Time:2017-10-30 14:27:30  Author:lautturi