pavement

Ports Tree, Installing

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (typo fix)
(walkthroughified)
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 thought 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 porperly 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 Exit
 +
-> Select installation media, (CDROM, FTP, ...)
 +
-> go to Exit
 +
-> Exit sysinstall (Press X)
  
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]]
 
+
samizdata# make search name=mozilla | more
+
 
+
or
+
 
+
samizdata# make search key=browser | more
+
 
+
See also: [[Update_the_ports_tree]]
+
 
[[Category:Common Tasks]]
 
[[Category:Common Tasks]]

Revision as of 18:24, 15 January 2005

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 porperly 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 Exit
-> Select installation media, (CDROM, FTP, ...)
-> go to Exit
-> Exit sysinstall (Press X)

See also: Update the ports tree

Personal tools