From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 17:06:35 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A22B237B401 for ; Mon, 14 Apr 2003 17:06:35 -0700 (PDT) Received: from blacklamb.mykitchentable.net (170-215-84-217.br1.elk.ca.frontiernet.net [170.215.84.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 214BA43FB1 for ; Mon, 14 Apr 2003 17:06:35 -0700 (PDT) (envelope-from drew@mykitchentable.net) Received: from tagalong (unknown [165.107.42.110]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 3DC9FEE67F for ; Mon, 14 Apr 2003 17:06:34 -0700 (PDT) Message-ID: <010201c302e2$e032dcc0$6e2a6ba5@tagalong> From: "Drew Tomlinson" To: "FreeBSD Questions" Date: Mon, 14 Apr 2003 17:06:33 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Portupgrade Command Syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 00:06:36 -0000 I've been trying to construct a command line that will pkg_deinstall all except for a few. I've found the -x switch but can not build an "or" pkgname_glob. Here's an example of one of the many combinations I tried: pkg_deinstall -n -x {'XFree86*','webmin','ruby*'} '*' This particular example will exclude the XFree packages but includes webmin and ruby*. My shell is tcsh. Is it possible to accomplish what I'm trying to do? How? Thanks, Drew