FreeBSD: Update Ports

FreeBSD has a lot of variety applications available via port. For me, this is the best thing so far in FreeBSD, plus simplicity, configurable and stability. Portsnap is a tool to let us get the distributed FreeBSD ports tree, in a simple way, we update the ports and get the latest stable version from the main tree.

To update ports, run following command:

portsnap fetch update

Once done, we need to extract them so it will update what available under /usr/ports:

portsnap extract

Attention: It might takes long time depending on your connection speed and hardware specs. You can grab a cup of coffee and watch Youtube to wait for this process to complete.

FreeBSD 8 – 10 Applications Need to be Installed

FreeBSD is well-known for its stability and security features offered. Though my statement might not be agree by some of the hardcore LINUX system administrator, this operating system is widely used by big company as the core platform of their system. Yahoo, Apache, Cisco, Apple, Juniper, NetApp are some of them.

FreeBSD is using port for package management. Its similar to yum, apt-get and yast2 but it is BSD-style. To install port, it just take 3 easy steps:

  1. Login to the server via console/SSH
  2. Lets say if you want to install nano, navigate to the /usr/ports/editors/nano
  3. Run ‘make’, then ‘make install’ then ‘make clean’ (to remove make files after installation complete)

I will list out all my first-need-to-be-installed application with ports directory and reasons in FreeBSD 8:

Text Editor: nano
Location: /usr/ports/editors/nano
Reason: Easy to use text editor with many direct functions. You may need it to edit many files, especially if it is new server.

Terminal: screen
Location: /usr/ports/sysutils/screen
Reason: Manage multiple terminal windows in one session. You may need this to install many other applications in a same time.

AntiVirus: clam-av
Reason: Even FreeBSD is well-known in security, don’t care about it. Protection first. Especially when the server is connected to a public network.

Browser: lynx
Location: /usr/ports/www/lynx
Reason: When you are in terminal mode, sometimes you need to download files that using cookies from a website, lynx will act like a normal browser in text mode.

Continue reading “FreeBSD 8 – 10 Applications Need to be Installed” »