blog.up-link.ro
11Jun/100

OpenBSD: How To Install OpenBSD Ports and Packages Collection

OpenBSD is a fairly complete system of its own, but still there is a lot of software that one might want to see added.

The port collection, originally borrowed from FreeBSD and significantly rewritten, fills this gap. The concept is to have, for each third-party software, a Makefile that controls:

  • where to fetch it,
  • how to do the fetch,
  • what it depends upon (if anything),
  • how to alter the sources (if needed),
  • how to configure, build and install it.

This information is kept in a directory hierarchy under the /usr/ports directory.

Packages are the binary equivalent of ports. A compiled port becomes a package that can be easily installed and registered into the system using pkg_add utility.

Print This Post Print This Post
12Feb/100

FreeBSD: How To Upgrade FreeBSD 7 to 8 Stable Release

FreeBSD 7.x allows upgrade of existing installation to FreeBSD 8.0-STABLE. Since this is a major version upgrade, it is recommended that you backup your data, database and configuration files.

This guide will walk a user through updating his source to follow FreeBSD's stable branch.  Please make a full backup of the current system before following this guide.

STEP 1: Syncing the source tree

- cvsup installation and configuration

# cd /usr/ports/net/cvsup-without-gui

# make install clean

OR

# pkg_add -r cvsup-without-gui

Copy the sample supfile for Stable to /usr/local/etc/stable-supfile:

# cp /usr/share/examples/cvsup/stable-supfile /usr/local/etc/

Edit file and set host name which specifies the server host which will supply the file updates to your system.

*default host=cvsup1.us.FreeBSD.org

Set release tag to stable 8:

*default release=cvs tag=RELENG_8

Run cvsup to download the latest stable source:

# cvsup -L 2 /usr/local/etc/stable-supfile

When the cvsup has completed, change to the /usr/src directory

Print This Post Print This Post