Portsnap: a Ports Collection Update Tool
Written by Tom Rhodes.
Based on notes provided by Colin Percival.
The base system of FreeBSD includes portsnap(8) for
updating the Ports Collection. This utility connects to a
FreeBSD site, verifies the secure key, and downloads a new copy of
the Ports Collection. The key is used to verify the integrity
of all downloaded files. To download the latest Ports
Collection files, issue the following command:#
portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 9 mirrors found.
Fetching snapshot tag from geodns-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Tue May 22 02:12:15 CEST 2012 to Wed May 23 16:28:31 CEST 2012.
Fetching 3 metadata patches.. done.
Applying metadata patches... done.
Fetching 3 metadata files... done.
Fetching 90 patches.....10....20....30....40....50....60....70....80....90. done.
Applying patches... done.
Fetching 133 new ports or files... done.When portsnap(8) successfully completes a
fetch
operation, the Ports Collection and
subsequent patches which exist on the local system have passed
verification. The first time portsnap
is
executed, use extract
to install the
downloaded files:#
portsnap extract
/usr/ports/.cvsignore
/usr/ports/CHANGES
/usr/ports/COPYRIGHT
/usr/ports/GIDs
/usr/ports/KNOBS
/usr/ports/LEGAL
/usr/ports/MOVED
/usr/ports/Makefile
/usr/ports/Mk/bsd.apache.mk
/usr/ports/Mk/bsd.autotools.mk
/usr/ports/Mk/bsd.cmake.mk
...
portsnap update
:#
portsnap update
When using
fetch
, the
extract
or the update
operation may be run consecutively:#
portsnap fetch update
/usr/ports
.( source: http://www.freebsd.org)
How to Find Out Public IP Address via Command Line in Unix/Linux Machine
If you have more than 100 servers in your network; behind a
firewall; lazy to access to documentation. Here is the alternative
option to find out your machine’s public IP Address via command line
$ wget -q -O - http://ipchicken.com | grep -o -E '(^|[[:space:]])[0-9]*.[0-9]*.[0-9]*.[0-9]*([[:space:]]|$)'
# By default, FreeBSD doesn't have wget, you can use fetch instead
$ fetch -q -o - http://www.ipchicken.com | grep -o -E '(^|[[:space:]])[0-9]*.[0-9]*.[0-9]*.[0-9]*([[:space:]]|$)'
You need port 80 external/WAN access to perform the task.(Source : http://systems.takizo.com)