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:// | ||
+ | * [[http:// | ||
+ | |||
+ | |||
+ | ==== 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 '' | ||
+ | |||
+ | == Setup package repo == | ||
+ | |||
+ | csh: | ||
+ | |||
+ | < | ||
+ | echo setenv PACKAGESITE ftp:// | ||
+ | source ~/.cshrc | ||
+ | </ | ||
+ | |||
+ | bash: | ||
+ | |||
+ | < | ||
+ | echo PACKAGESITE=ftp:// | ||
+ | source ~/.bashrc | ||
+ | </ | ||
+ | ==== Install Base Packages ==== | ||
+ | |||
+ | Now you're ready to install system packages. The first thing to do is install bsdadminscripts which will make managing '' | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | make clean install | ||
+ | </ | ||
+ | |||
+ | The bsdadminsciripts package gets the package information directly from an FTP server, instead of relying on the data in ports. | ||
+ | |||
+ | Install some basics to get started: | ||
+ | |||
+ | < | ||
+ | pkg_upgrade -r `fetch -q -o - http:// | ||
+ | chsh -s / | ||
+ | </ | ||
+ | |||
+ | ==== Install Fixes ==== | ||
+ | |||
+ | Upgrade FreeBSD to use devel/ | ||
+ | |||
+ | < | ||
+ | pkg_upgrade -r portmaster | ||
+ | portmaster -o devel/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== Howto ==== | ||
+ | |||
+ | List installed packages: | ||
+ | |||
+ | < | ||
+ | pkg_info | ||
+ | </ | ||
+ | |||
+ | Download package list for parsing: | ||
+ | |||
+ | < | ||
+ | curl -s http:// | ||
+ | </ | ||
+ | |||
+ | ==== Binaries ==== | ||
+ | |||
+ | Install a package using the shortname, fex '' | ||
+ | |||
+ | < | ||
+ | pkg_add -r wget | ||
+ | </ |