Updating ports tree
If none of the rsync mirrors work for you, also read the FAQ entry for this very question: My issue rises because i have 2 servers, one running php 5.2 (server a) and the other running 5.3 (server b) I want to update the ports tree in server a to match the ports tree in server b exactly.is a tool that allows you to upgrade ports on your Free BSD system.It has its faults, and it doesn't always work (see below), but its about as close as you can get on Free BSD to a 'one-click' upgrade.I had Xcode 5.0.2 already installed so I logged in my Apple i OS developer account, and downloaded Updating Mac Ports base sources using rsync rsync: failed to connect to rsync.macports.org: Operation timed out (60) rsync error: error in socket IO (code 10) at /Source Cache/rsync/rsync42/rsync/clientserver.c(105) [receiver=2.6.9] Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs//opt/local/var/macports/sources/rsync.macports.org/release/tarballs Exit code: 10 Error: Error synchronizing Mac Ports sources: command execution failed To report a bug, follow the instructions in the guide: Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing Mac Ports sources: command execution failed` According to failed to connect to server message, I thought it may be caused because of restrictions and sanctions applied to my IP Address which by the way is currently from Iran (I figured that out because I cannot even open macports website directly without using a proxy server) ! while executing "macports::fetch_port $path 1" (procedure "macports::getportdir" line 12) invoked from within "macports::getportdir $source" (procedure "macports::getindex" line 4) invoked from within "macports::getindex $source" (procedure "_mports_load_quickindex" line 11) invoked from within "_mports_load_quickindex" (procedure "mportinit" line 577) invoked from within "mportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize Mac Ports, Port extract failed: ports/Port Index_darwin_11_i386/Port Index.quick: gzip decompression failed tar: Error exit delayed from previous errors. The only way to redirect RSYNC requests through a proxy server is to tunnel over an L2TP VPN connection ( not PPTP ).I used the instructions in the following URL to reroute the connection and make Macports connect through a proxy server : Updating the ports tree Synchronizing local ports tree from % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 24.6M 100 24.6M 0 0 98.9M 0 --:--:-- --:--:-- --:--:-- 99.1M x ports/ x ports/gnome/ x ports/gnome/gnofract4d/ x ports/gnome/gnofract4d/Portfile x ports/gnome/gnofract4d/files/ x ports/gnome/gnofract4d/files/diff x ports/gnome/gnofract4d/files/x ports/gnome/gnofract4d/files/patch-fract4d_diff x ports/gnome/gnofract4d/files/patch-fract4d-c-image diff x ports/gnome/libchamplain/ x ports/gnome/libchamplain/Portfile x ports/gnome/gconf/ x ports/gnome/gconf/Portfile x ports/gnome/goocanvas/ x ports/gnome/goocanvas/Portfile x ports/gnome/gstreamer1-gst-libav/ . That's the only way to make Macports work behind a proxy server.In this article we will install and use ports collection to update the Freebsd 11.0 system.This article assumes you have installed Free BSD 11 using our previous article.
To find out what branch a working copy is on, you can use the `status' command.Everyone is encouraged to use the pre-compiled binary packages.If you have questions about the ports tree, it is assumed that you have read the manual pages and this FAQ, and that you are able to work with it.There are other tools for doing upgrades, and several (including First, figure out if any packages need to be upgraded manually. You can do this one of two ways: either do a fully automatic upgrade, or do the upgrade bit-by-bit.There isn't really any good way of doing this that I've figured out, but I've made a list of packages I've had problems with below. The latter is STRONGLY recommended, as it allows you to go slowly and test things.