pkgtools

pkgtools (aka Portupgrade) is a tool set for working with ports and packages.
Download

pkgtools Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Akinori MUSHA
  • Publisher web site:
  • http://wiki.freebsd.org/portupgrade

pkgtools Tags


pkgtools Description

pkgtools (aka Portupgrade) is a tool set for working with ports and packages. pkgtools (aka Portupgrade) is a tool set for working with ports and packages. It enhances abilities of system tools and adds many new ones. It is highly tunable via its configuration file and allows you to create individual svariable environment for every port you like, to define commands that will be executed before/after port upgrade stages.pkgtools uses hash databases to keep information about available ports (in the ports tree), installed ports, dependencies, etc. So access to the information is fast. E.g. portversion(1) is much faster than pkg_version(1). (But note: you have to have a fresh INDEX file for relevant results).pkgtools consist of the utils:· portupgrade - upgrade a port using ports or packages.· portinstall - helps you install new ports in a handy way.· pkg_deinstall - wraps pkg_delete(1) and provides additional features.· pkg_fetch - fetches packages from a remote site.· pkg_which - checks which package a file came from quickly.· portversion - a fast version of pkg_version(1).· portsclean - cleans ports workdirs, unreferenced distfiles, old and orphan shared libraries, and stale packages.· portcvsweb - instantly lets you browse change history via CVSweb.· pkgdb - manages and searches the package database.· portsdb - creates binary database from the ports INDEX.Tips and hints for using· Look at pkgtools.conf. You'll find many interesting examples there.· portupgrade can stop/start/restart services when you like. Add these lines in pkgtools.conf and you'll always have service started after an upgrade process: AFTERINSTALL = { '*' => proc { |origin| cmd_start_rc(origin) }, }· You can fetch INDEX and rebuild portsdb with one command: portsdb -Fu· Use portinstall(1) and pkg_deinstall(1) as an alternative to pkg_add(1) and pkg_delete(1).· You can see a port history in your browser with portcvsweb(1) easily.· portsclean -D will purge old distfiles. portsclean -C will clean all 'work' directories. portsclean -L will clean up unused libraries in /usr/local/lib/compat/pkg. portsclean -P will clean up outdated packages.· If you afraid that something will able going wrong after upgrade, you can preserve old packages with -b option.What's New in This Release:· Document new options.· Do not touch +CONTENTS file if it's not necessary.· Remove temporary dir with `rm -r'. It could be inner dirs there.· A new utility to display disk usage of installed packages.


pkgtools Related Software