From owner-freebsd-questions@FreeBSD.ORG Sun Mar 28 14:46:46 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC9851065676 for ; Sun, 28 Mar 2010 14:46:45 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9414B8FC1B for ; Sun, 28 Mar 2010 14:46:45 +0000 (UTC) Received: by gwj15 with SMTP id 15so5801214gwj.13 for ; Sun, 28 Mar 2010 07:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=6h981txKXxGrkC8kOJJl7Y6hjo648O8+3bwkTEdMTcQ=; b=pbtEjfmeykJMooj925jcqNOYlvozB0jSEFqKc3n/6yqAQRqPVU5Hfncz3F2lPCVUv3 KXVag6LjiHgtuF2kWg695OLFo0IT5VKggj0Y5tdomrFq8W4Ff94lk9TLcAmOOWgXOjZ/ gUAm4746D4dtp+hjMPBMaKZvdL34vEsEuP88I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=VIFfBfUWZRCYy5Daut1EDY3JH8D+HKN53f3q37c82Fhlvw2/sl3SloIHNvVg/J9pdJ xMCBymSYFeYot+N3wkX7w4pIncX8yWOaqztlgqoMLrq+OecqrudZoShTKSDSbHmpvbkL TE2lzYKA6A5cT670pHb8ivHYz7v8Nbw+d1aFk= Received: by 10.150.142.11 with SMTP id p11mr870924ybd.209.1269787604466; Sun, 28 Mar 2010 07:46:44 -0700 (PDT) Received: from [192.168.6.250] ([201.21.146.140]) by mx.google.com with ESMTPS id 22sm754288yxe.1.2010.03.28.07.46.42 (version=SSLv3 cipher=RC4-MD5); Sun, 28 Mar 2010 07:46:43 -0700 (PDT) From: Sergio de Almeida Lenzi To: Programmer In Training , freebsd-questions In-Reply-To: <4BAE3E5C.8020905@joseph-a-nagy-jr.us> References: <4BAE3E5C.8020905@joseph-a-nagy-jr.us> Date: Sun, 28 Mar 2010 11:46:39 -0300 Message-ID: <1269787599.6000.15.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Enough Is Enough X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2010 14:46:46 -0000 I do not doubt the "power" of portmaster and portupgrade, but.... in my system (I have a "master" 4core,8Gb and several "slaves" about 40 of them , that upgrade via portmaster -P -aBdg) in the master system there are about 1200 packages installed... so a portmaster -r png will last forever... I made a shell script that tests for the existance of the library in /usr/local/lib/*.so, /usr/local/bin/* sort it and tells me what ports really need upgrade... with about 1200 ports, only 120 needed upgrade... (a question of 2 hours) in the "master cpu", or about 20 minutes in the "slaves" this scripts outputs the commands needed to fix the system watch out ================================== #!/bin/sh endp() { rm -f $t exit $1 } t=/tmp/$$ if [ $# -ne 1 ] then echo use $0 library endp 1 fi lib=$1 find /usr/local/bin /usr/local/lib -name -type f | \ while read x do grep $lib $x | \ awk '{print $3}' | \ while read y do pkg_info -W $y >> $t done done awk '{print $NF}' $t | sort -u > /tmp/buildpkglist echo nice portmaster -Bdg `cat /tmp/buildpkglist` endp 0 =========================================