FindPage
View Source:
KnowledgeBase/FreeBSD/UpdatePorts
Note:
You are viewing an old version of this page.
View the current version.
Sync ports tree <verbatim> csup ports-supfile </verbatim> Update INDEXes <verbatim> portsdb -Uu pkgdb -u </verbatim> Get a list of out-of-date ports <verbatim> pkg_version -vl '<' | cut -d' ' -f1 </verbatim> Pull dependency information for each out-of-date port (Children must be rebuilt/reinstalled as well) <verbatim> pkg_info -Rq </verbatim> Do this recursively, keeping track of the depth. Once you hit bottom on all the ports and their descendants, squash the depgraph, placing deeper dependencies later. I.e.: <verbatim> A -B -C --D E -B -D =becomes= A E B C D == </verbatim> BASH script is at [CheckPorts.sh] Once you have a list of ports to install, and their order, you can use a convenience function in sh to build a package <verbatim> makepkg() { make all deinstall install package clean mv -v *.tbz ~/packages/ } </verbatim>