About Linux FAQ

Browse More FAQs:

OpenBSD Install Ports Collection

Posted by Vivek on Saturday May 3, 08 (2 weeks ago) @11:25 am

Q. I've installed OpenBSD but ports collection is missing at /usr/ports directory. How do I install ports from ftp / http site?

A. Port collection is essential for OpenBSD server.

Method # 1: Install ports from CDROM

If you have OpenBSD CDROM type the following command to copy out the contents of the ports tree to /usr/ports; you would mount the CD-ROM with ports on it on /cdrom and issue a command like follows:
# mount /cdrom
# cd /usr
# tar zxf /cdrom/ports.tar.gz

Method # 2: Install ports from FTP / HTTP mirror

Use wget and grab ports.tar.gz, enter:
# cd /usr
# wget ftp://ftp.openbsd.org/pub/OpenBSD/$(uname -r)/ports.tar.gz

Sample output:

--11:44:39--  ftp://ftp.openbsd.org/pub/OpenBSD/4.1/ports.tar.gz
           => `ports.tar.gz'
Resolving ftp.openbsd.org... 129.128.5.191
Connecting to ftp.openbsd.org|129.128.5.191|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/OpenBSD/4.1 ... done.
==> PASV ... done.    ==> RETR ports.tar.gz ... done.
Length: 11,184,931 (11M) (unauthoritative)

100%[=================================================================================================================>] 11,184,931   236.83K/s    ETA 00:00

11:45:29 (230.09 KB/s) - `ports.tar.gz' saved [11184931]

Extract ports tar.gz:
# tar -zxvf ports.tar.gz

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Linux / UNIX FAQ:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , , , ~ Last updated on: May 3, 2008

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.