Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
PKG_UPDATE(1)			 User Manuals			 PKG_UPDATE(1)

NAME
       pkg_update - Easy handling of jailed packages builds.

SYNOPSIS
       pkg_update [command] ...

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

ARGUMENTS
       update-ports
	      Start "make update" for the ports	tree.

       make-packages
	      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-pack-
	      ages.${hostname}"

       clean-distfiles
	      Checks  all  distinfo  files and moves the disfiles not found to
	      "/usr/ports/distfiles/Old/".

       merge-distfiles
	      Copy all disfiles	found that do not  yet	exist  on  the	master
	      directory	"/media/ports/distfiles/".

       clean-packages
	      Find obsolete packages and move them out of the way.

       pkg_update clean-openssl-packages
	      Find packages that use openssl and move them out of the way

       full-update-jail
	      Do full update cycle: 1. "update-ports" to update	the ports tree
	      2. "clean-packages" to keep only good packages 3.	remove all old
	      error logs 4. "make-packages" to rebuild missing packages

       full-update-jail	retry
	      Skip "update-ports" and procced as above.

       fetch-distfiles
	      Fetch distfiles for list of ports.

       fetch-recursive-distfiles
	      Fetch distfiles for list of ports	and their dependecies.

       show-extra-files
	      List files in portsdir that are not updated by cvsup

       dependency-update
	      Try to fix as much dependecy problens in installed ports.

       fix-moved-ports
	      Check installed packages for moved ports.	 Then register the new
	      dir in the old installed package.

       add-packages
	      Build a missing port and its missing dpendencies	/usr/local  is
	      not  deleted,  on	success	the port is installed.	Existing pack-
	      ages will	be used.

       list-installed-ports
	      List all installed ports.

       show-version-list
	      List installed packages that are not in correct version.

       show-packages
	      List build packages or report missing for	each port recorded  in
	      "data/install-packages.${hostname}".

       check-installed-ports
	      Compare  the  list  of installed ports with the list recorded in
	      data/install-packages.${hostname}".

       show-missing-packages
	      Warn  if	no  package  is	 found	for  each  port	 recorded   in
	      "data/install-packages.${hostname}"

       show-missing-installed
	      List build packages or report missing for	each port installed on
	      this host.

       check-update
	      1. check-installed-ports 2. show-missing-packages	3.  show-miss-
	      ing-installed

       clean  Clean all	cached information.

       make-version-list
	      Make new list of packages	that are not in	correct	version.

       make-deinstall-list
	      Make  new	list of	ports that are not in correct version and cre-
	      ate a script "deinstall.${hostname}" to deinstall	 all  the  old
	      ports and	the dependend ports in order.

       check-reinstall
	      For each package deleted by "make-deinstall-list"	warn if	no new
	      package is found.

       reinstall
	      For each package deleted by "make-deinstall-list"	try to install
	      the new package if it exists.

       install-packages
	      For  each	 port  recorded	in "data/install-packages.${hostname}"
	      try to to	install	the new	package	if it exists.

       show-missing-reinstall
	      For each port recorded from "make-deinstall-list"	warn if	no new
	      package is found.

       make-easy-update
	      Try  to  generate	 the  ordered  sequence	 of  pkg_deinstall and
	      pkg_add commands to update your old packages.

       replace-package
	      Overwrite	the installed package with  a  new  one	 and  register
	      dependencies  and	 dependant  packages.	Warning: Don't do this
	      when the ABI of the this package or the ABI of its  dependencies
	      has changed.

       clean-reinstall
	      For each port recorded from "make-deinstall-list", keep only the
	      ports that have no package installed.

       deinstall-packages
	      For each port  recorded  in  "data/install-packages.${hostname}"
	      try to to	deinstall the installed	port.

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

RETURN VALUES
       undefined.

FILES
       /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.

EXAMPLES
       pkg_update full-update-jail clean-distfiles

SEE ALSO
       pkg_jail(1)
	      The tool to create and run the jail.

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

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

AUTHOR
       Dirk Meyer, dinoex@FreeBSD.org

FreeBSD				  April	2010			 PKG_UPDATE(1)

NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | IMPLEMENTATION NOTES | RETURN VALUES | FILES | EXAMPLES | SEE ALSO | HISTORY | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=pkg_update&sektion=1&manpath=FreeBSD+11.1-RELEASE+and+Ports>

home | help