From owner-freebsd-questions@FreeBSD.ORG Fri Feb 10 02:39:50 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2549106566B for ; Fri, 10 Feb 2012 02:39:50 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id C2A7D8FC13 for ; Fri, 10 Feb 2012 02:39:50 +0000 (UTC) Received: by iaeo4 with SMTP id o4so4301783iae.13 for ; Thu, 09 Feb 2012 18:39:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Sqmo/iGcHjT3LhI6bU1MMB/XJXWC/CcRgfVycj0WThE=; b=aHNQdg/iq71hL7GNwgn9EHSqG9HJyNEwBr+OfWE7J/ABOvrmn4eWYFfBm1SXxjPUE6 jZLVF+F/pR/CnjrjXLC26jgAiJ56wMfRKxjkS7ZDpsNlwJJYLVhTaWwYOdalwCOlP7x6 YHvTajWKZsjvd41kD+S+aELXsGXA+cwCwVKFA= MIME-Version: 1.0 Received: by 10.50.161.231 with SMTP id xv7mr430362igb.0.1328841590230; Thu, 09 Feb 2012 18:39:50 -0800 (PST) Received: by 10.50.222.227 with HTTP; Thu, 9 Feb 2012 18:39:50 -0800 (PST) Date: Thu, 9 Feb 2012 20:39:50 -0600 Message-ID: From: Antonio Olivares To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Subject: portshaker, listing updates and skipping broken/removed ports 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: Fri, 10 Feb 2012 02:39:51 -0000 Dear folks, I have a question regarding portshaker. I have successfully used Warren Block's script to make updates. http://www.wonkity.com/~wblock/docs/html/portupgrade.html #!/bin/sh /usr/sbin/portsnap fetch update && \ /usr/local/sbin/portmaster -L --index-only | egrep '(ew|ort) version|total install' How can I do the same with portshaker command? I now have to use portshaker to update freebsd-texlive ports. I try to fetch updates to texlive-* ports, but none show up. They show up after I run portshaker command. The freebsd-texlive ports http://code.google.com/p/freebsd-texlive/ by Romain Tartiere are working beautifully, but updating them is another story. I did not know that one has to use portshaker to get the updates, since they are not officially in freebsd ports. Running portshaker now I see the updates and can update them, but some packages have been removed upstream and portmaster -a command fails and I have to manually remove the culprit packages Otherwise above script only updates regular freebsd official ports and not the new ones with texlive. Also, if there are broken or removed ports in ports tree, I get updating error. * package has been removed and blah blah blah aborted... I have to then run # portmaster -a -x name-of-one-broken-package -x name-of-removed-package -x etc... Is there a way to avoid having to type the broken or removed packages and update with one command? Maybe a conditional command, update only available ports and skip the broken ones? Thanks for advice/suggestions/comments. Many of the folks on this list are very knowledgeable and have been a great help throughout and I am glad to be using FreeBSD and learning more about this great operating system that I never knew before. Regards, Antonio