|
Quote:
|
|
Another handy trick is making a package repository. This can be both a time- and bandwidth-saver if you need to install software on multiple machines in a network. It is also ideal for installing software on server machines, as you don't have to install the entire ports collection just to install your required applications.
|
|
Code:
|
# mkdir /usr/ports/packages |
Then create the packages you need. Here, I'll create two packages:
|
Code:
|
# cd /usr/ports/www/lynx
# make package
# cd /usr/ports/mail/getmail
# make package |
Other way to make binary packages is to use
portinstall:
|
Code:
|
# portinstall -p somelargepackage |
When you use
make package, two things happen. One, a package is created and stored in a subdirectory of
/usr/ports/packages. Second, the port is installed on the local machine, if it hasn't already been installed. If you don't want to keep the application installed on the machine acting as the package repository, simply type
make deinstall once the package has been created. You can add packages with
pkg_add command later to other computers or use em as PBI package source.
Read more
here.