pavement

Ports Tree, Installing

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by 212.142.143.116 (Talk); changed back to last version by Jimbo)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
When you installed the OS, you were given the option to install the ports system. If you said no but have since though better of it, you can go into [[sysinstall]] and install it (in the Distributions sub-menu). To install a port, you must first become root and find it:
+
Before you can install any ports in FreeBSD you will need to install the ports collection. The ports tree is placed in /usr/ports/ and consists of the makefiles and information required to properly download and install all of the FreeBSD ports.  
  
dave@samizdata[~]% su -
+
The easiest way to install the ports tree is to use [[sysinstall]]
  Password:
+
> '''su'''
  samizdata# cd /usr/ports
+
  (enter root password)
 +
  > '''sysinstall''' (or '''/stand/sysinstall''' for versions < 5.2)
 +
-> Select '''Configure'''
 +
-> Select '''Distributions'''
 +
-> Select '''ports'''
 +
-> go to OK
 +
-> Select installation media, (CDROM, FTP, ...)
 +
-> go to Exit
 +
-> Exit sysinstall (Press X)
 +
 +
You can also go to FreeBSD.org and ftp the latest ports.tar.gz (about 200megs or so,) and uncompress it in /usr. But why do it manually when you've got sysinstall to deal with the hassle for you?
  
You can search the ports collection for ports to install by browsing through the categories, or you can use "make search" like so:
+
See also: [[Update the ports tree]], [[Ports, Installing]]
 
+
[[Category:Common Tasks]]
samizdata# make search name=mozilla | more
+
 
+
or
+
 
+
samizdata# make search key=browser | more
+
 
+
See also: [[Update_the_ports_tree]]
+

Latest revision as of 15:16, 30 January 2008

Before you can install any ports in FreeBSD you will need to install the ports collection. The ports tree is placed in /usr/ports/ and consists of the makefiles and information required to properly download and install all of the FreeBSD ports.

The easiest way to install the ports tree is to use sysinstall

> su
(enter root password)
> sysinstall (or /stand/sysinstall for versions < 5.2)
-> Select Configure
-> Select Distributions
-> Select ports
-> go to OK
-> Select installation media, (CDROM, FTP, ...)
-> go to Exit
-> Exit sysinstall (Press X)

You can also go to FreeBSD.org and ftp the latest ports.tar.gz (about 200megs or so,) and uncompress it in /usr. But why do it manually when you've got sysinstall to deal with the hassle for you?

See also: Update the ports tree, Ports, Installing

Personal tools