Note: You are viewing an old version of this page. View the current version.

Differences between version 8 and previous revision of KnowledgeBase/FreeBSD/UpdatePorts.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 8 Last edited on Sunday, 10 January 2010 13:21:04 by CyberLeo Revert
Older page: version 7 Last edited on Wednesday, 9 April 2008 10:35:59 by CyberLeo Revert
@@ -1,27 +1,27 @@
 Sync ports tree 
-<verbatim
+<code brush=bash
 csup ports-supfile 
-</verbatim
+</code
  
 Update INDEXes 
-<verbatim
+<code brush=bash
 portsdb -Uu 
 pkgdb -u 
-</verbatim
+</code
  
 Get a list of out-of-date ports 
-<verbatim
+<code brush=bash
 pkg_version -vl '<' | cut -d' ' -f1 
-</verbatim
+</code
  
 Pull dependency information for each out-of-date port (Children must be rebuilt/reinstalled as well) 
-<verbatim
+<code brush=bash
 pkg_info -Rq 
-</verbatim
+</code
  
 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
+<code
 
 -B 
 -C 
 --D 
@@ -34,15 +34,15 @@
 
 
 
 == 
-</verbatim
+</code
  
-BASH script is at [CheckPorts.sh] 
+BASH script is at [CheckPorts.sh|KnowledgeBase/FreeBSD/ 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
+<code brush=bash
 makepkg() { 
  rm *.tbz 
  make all deinstall install package clean && mv -v *.tbz /build/pkg/ 
 
-</verbatim
+</code

version 8

Sync ports tree

csup ports-supfile

Update INDEXes

portsdb -Uu
pkgdb -u

Get a list of out-of-date ports

pkg_version -vl '<' | cut -d' ' -f1

Pull dependency information for each out-of-date port (Children must be rebuilt/reinstalled as well)

pkg_info -Rq

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.:

A
-B
-C
--D
E
-B
-D
=becomes=
A
E
B
C
D
==

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

makepkg() {
 rm *.tbz
 make all deinstall install package clean && mv -v *.tbz /build/pkg/
}