Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I think this is a very basic question but I need some understanding.

What does a port mean in freebsd?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

In regards to software, When using "port" as a noun in regards to FreeBSD, it is a piece of software that has been modified so it will easily compile, install and run. FreeBSD comes with a set of directories that contain thousands of such pieces of software located in /usr/ports by default.

Precompiled versions of the software are usually available as "packages". Once a port is installed, the package management system allows you to maintain the software semi-efficiently.

Ports are usually not written by the FreeBSD Foundation or released with the operating system itself. You can browse the list online on their website.

A port could also be referencing a TCP or UDP port number; or Serial and Parallel ports.

share|improve this answer
    
Actually www.freshports.org is probably a better approach to browse the ports collection. –  juwi Jan 18 '12 at 22:58
    
The word port originally comes from portable and the concept of software portability. This term refers to the usability of software in different environments. For example, the same source code for GNU tar compiles on FreeBSD, Ubuntu, Solaris, and HPUX even though they are all quite different operating systems. –  Utkonos Jun 5 '12 at 21:59
    
The source that the port uses is not written by FreeBSD committers (I would nitpick that the FreeBSD Foundation does not write FreeBSD, the FreeBSD Project does; the Foundation just pays some of the bills). However, the FreeBSD project does write all the port code in the ports hierarchy. That is the code that allows the source code from an upstream project such as GNU tar to be compiled into a package for installation on FreeBSD. This code is in fact released with the operating system. You can see all of that particular code here: link –  Utkonos Jun 5 '12 at 22:07
add comment

Please check the following section of the FreeBSD handbook:

Chapter 4 Installing Applications: Packages and Ports

(Yes, a bit RTFM, but the Handbook is really, really good)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.