no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


freebsd_packages [2015/06/01 22:18] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== FreeBSD Packages ======
  
 +  * [[FreeBSD]]
 +  * [[FreeBSD Ports]]
 +  * [[pkg_add]]
 +  * [[pkg_upgrade]]
 +
 +  * [[http://dev.digitaltrike.com/~steve/downloads/freebsd/|Package Lists]]
 +  * [[http://www.freebsd.org/ports/|FreeBSD Ports]]
 +
 +
 +==== Ports and Packages ====
 +
 +A few notes regarding ports (source installs) and packages (binary installs):
 +
 +  * The versions may be different from each other (PHP 5.3.15 in ports, PHP 5.3.14 in packages)
 +  * You can mix and match between the two (one source install, one binary), but it is **not recommended**
 +  * FreeBSD by default will install packages that were built for the original release
 +  * You must set ''PACKAGESITE'' environment variable yourself to get latest packages
 +
 +== Setup package repo ==
 +
 +csh:
 +
 +<code>
 +echo setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-stable/ >> ~/.cshrc
 +source ~/.cshrc
 +</code>
 +
 +bash:
 +
 +<code>
 +echo PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-stable/ >> ~/.bashrc
 +source ~/.bashrc
 +</code>
 +==== Install Base Packages ====
 +
 +Now you're ready to install system packages. The first thing to do is install bsdadminscripts which will make managing ''packages'' much simpler.
 +
 +<code>
 +cd /usr/ports/sysutils/bsdadminscripts
 +make clean install
 +</code>
 +
 +The bsdadminsciripts package gets the package information directly from an FTP server, instead of relying on the data in ports.  It also comes with a script [[pkg_upgrade]] which makes installation and upgrading much simpler.
 +
 +Install some basics to get started:
 +
 +<code>
 +pkg_upgrade -r `fetch -q -o - http://beandog.org/downloads/freebsd/packages/base`
 +chsh -s /usr/local/bin/bash
 +</code>
 +
 +==== Install Fixes ====
 +
 +Upgrade FreeBSD to use devel/pkgconf instead of devel/pkg-config:
 +
 +<code>
 +pkg_upgrade -r portmaster
 +portmaster -o devel/pkgconf devel/pkg-config
 +</code>
 +
 +
 +
 +==== Howto ====
 +
 +List installed packages:
 +
 +<code>
 +pkg_info
 +</code>
 +
 +Download package list for parsing:
 +
 +<code>
 +curl -s http://beandog.org/downloads/freebsd/packages/apache | cut -d "/" -f 2
 +</code>
 +
 +==== Binaries ====
 +
 +Install a package using the shortname, fex ''wget'' This will pull in all dependencies as well.
 +
 +<code>
 +pkg_add -r wget
 +</code>

Navigation
QR Code
QR Code freebsd_packages (generated for current page)