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.

     update-pkg
	    Force rebuild of pkg tools.

     repo   Force rebuild of pkg repo.

     make-packages
	    Builds  a  port  and  its  dependencies  in a clean /usr/local.  You
	    should not run this on a server with configuration.  Existing  pack-
	    ages  are  used.   Extra  files  in "${PREFIX}" are detected and re-
	    ported.  The default list of  ports  is  "data/make-packages.${host-
	    name}"

     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  direc-
	    tory "/media/ports/distfiles/".

     clean-packages
	    Find packages thar are obsolete or have changed depedencies and move
	    them out of the way to "/usr/ports/packages/Old/".

     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-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
	    Fetch distfiles for list of ports.

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

     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  packages  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-missing-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 create  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.

     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

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 2017			   PKG_UPDATE(1)

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

home | help