GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PKG_UPDATE(1) User Manuals PKG_UPDATE(1)

pkg_update - Easy handling of jailed packages builds.

pkg_update is a script to handle an clean jail for package-builds.

Start "make update" for the ports tree.
Force rebuild of pkg tools.
Force rebuild of pkg repo.
Builds a port and its dependencies in a clean /usr/local. You should not run this on a server with configuration. Existing packages are used. Extra files in "${PREFIX}" are detected and reported. The default list of ports is "data/make-packages.${hostname}"
Checks all distinfo files and moves the disfiles not found to "/usr/ports/distfiles/Old/".
Copy all disfiles found that do not yet exist on the master directory "/media/ports/distfiles/".
Find packages thar are obsolete or have changed depedencies and move them out of the way to "/usr/ports/packages/Old/".
Find packages that use openssl and move them out of the way
Do full update cycle:
1. "update-ports" to update the ports tree
2. "clean-distfiles" to keep only good packages
3. "clean-packages" to keep only good packages
4. remove all old error logs
5. "make-packages" to rebuild missing packages
full-update-jail retry
Skip "update-ports" and procced as above.
Fetch distfiles for list of ports.
Fetch distfiles for list of ports and their dependecies.
Check installed packages for moved ports. Then register the new dir in the old installed package.
Build a missing port and its missing dpendencies /usr/local is not deleted, on success the port is installed. Existing packages will be used.
List all installed ports.
List installed packages that are not in correct version.
List build packages or report missing for each port recorded in "data/install-packages.${hostname}".
Compare the list of installed ports with the list recorded in data/install-packages.${hostname}".
Warn if no package is found for each port recorded in "data/install-packages.${hostname}"
List build packages or report missing for each port installed on this host.
1. check-installed-ports
2. show-missing-packages
3. show-missing-installed
Clean all cached information.
Make new list of packages that are not in correct version.
Make new list of ports that are not in correct version and create a script "deinstall.${hostname}" to deinstall all the old ports and the dependend ports in order.
For each package deleted by "make-deinstall-list" warn if no new package is found.
For each package deleted by "make-deinstall-list" try to install the new package if it exists.
For each port recorded in "data/install-packages.${hostname}" try to to install the new package if it exists.
For each port recorded from "make-deinstall-list" warn if no new package is found.
For each port recorded from "make-deinstall-list", keep only the ports that have no package installed.
For each port recorded in "data/install-packages.${hostname}" try to to deinstall the installed port.

This script uses only /bin/sh and it does not need an INDEX file.

undefined.

/usr/ports/local/update/data/
Default location for configuration and varaible data.

/usr/ports/local/update/log-${hostname}
Default location for logsfiles.
/media/ports/distfiles/
Optional location lor a central hostng of distfiles.

pkg_update full-update-jail

The tool to create and run the jail.

http://www.dinoex.net/training/package.html

Dirk Meyer, dinoex@FreeBSD.org

April 2017 FreeBSD

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.