From owner-freebsd-questions@FreeBSD.ORG Sat May 18 10:48:28 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3A886868 for ; Sat, 18 May 2013 10:48:28 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mx1.bjare.net (mx1.bjare.net [212.31.160.3]) by mx1.freebsd.org (Postfix) with ESMTP id EF5D5B33 for ; Sat, 18 May 2013 10:48:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 793A15E343 for ; Sat, 18 May 2013 12:48:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -0.965 X-Spam-Level: X-Spam-Status: No, score=-0.965 tagged_above=-999 required=5 tests=[AWL=0.033, BAYES_00=-2.599, RCVD_IN_PBL=0.905, RDNS_DYNAMIC=0.1, SPF_SOFTFAIL=0.596] Received: from mx1.bjare.net ([127.0.0.1]) by localhost (mx1.bjare.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id q5zN2tMqVllV for ; Sat, 18 May 2013 12:48:13 +0200 (CEST) X-BN-MX1: ja X-BN-MailInfo: BjareNet Received: from blj01.no-ip.org (c224-156-70-80.bjare.net [80.70.156.224]) by mx1.bjare.net (Postfix) with ESMTP id 8BC0E5E336 for ; Sat, 18 May 2013 12:48:11 +0200 (CEST) Message-ID: <51975C6B.1060305@eskk.nu> Date: Sat, 18 May 2013 12:48:11 +0200 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130516 Thunderbird/17.0.6 MIME-Version: 1.0 To: "freebsd-questions@FreeBSD.org" Subject: pkg version -L howto? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 May 2013 10:48:28 -0000 I ran into a little problem with my "old" crontab scripts. I do the following: portsnap -I cron update /usr/local/sbin/portmaster -y --clean-distfiles /usr/local/sbin/portmaster -aF pkg version -vIL After changing to pkg the check for outdated ports fails on the -L flag pkg version -vIL pkg: option requires an argument -- L usage: pkg version [-IPR] [-hoqv] [-l limchar] [-L limchar] [[-X] -s string] [-r reponame] [-O origin] [index] pkg version -t pkg version -T According to "pkg help version" the -l -L should be followed by limchar. Unfortunately it is not clear what limchar can be. Looking at the examples in help I drew the conclusion that limchar can be one of the following: = < > ? ! And in my case I would need the -L < to show which packages need to be updated. But that is not the case. root@blj01~:pkg version -vIL= root@blj01~:pkg version -vIL< Missing name for redirect. root@blj01~:pkg version -vIL> Missing name for redirect. root@blj01~:pkg version -vIL? pkg: No match. root@blj01~:pkg version -vIL! Lists all installed packages I would very much like a suggestion on how to get this right. Thank you /Leslie