From owner-cvs-all Tue Jan 11 22:43:30 2000 Delivered-To: cvs-all@freebsd.org Received: from ms.tokyo.jcom.ne.jp (ms.tokyo.jcom.ne.jp [210.234.123.18]) by hub.freebsd.org (Postfix) with ESMTP id E09C414E94; Tue, 11 Jan 2000 22:43:22 -0800 (PST) (envelope-from musha@ms.tokyo.jcom.ne.jp) Received: from daemon.local.idaemons.org (pc062018.tokyo.jcom.ne.jp [210.155.62.18]) by ms.tokyo.jcom.ne.jp (8.9.1/3.7W 06/01/99) with ESMTP id PAA01371; Wed, 12 Jan 2000 15:42:47 +0900 (JST) Received: by daemon.local.idaemons.org (8.9.3/3.7W) id PAA01438; Wed, 12 Jan 2000 15:42:14 +0900 (JST) Date: Wed, 12 Jan 2000 15:42:13 +0900 Message-ID: <86vh4z3i62.wl@localhost.local.idaemons.org> From: Akinori MUSHA aka knu To: jkh@zippy.cdrom.com Cc: kris@hub.freebsd.org, fullermd@futuresouth.com, freebsd@gndrsh.dnsmgr.net, asmodai@bart.nl, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/pkg_install/delete perform.c In-Reply-To: In your message of "Tue, 11 Jan 2000 17:21:01 -0800" <1777.947640061@zippy.cdrom.com> References: <1777.947640061@zippy.cdrom.com> User-Agent: Wanderlust/2.2.14 (Layla) EMIKO/1.13.9 (Euglena tripteris) FLIM/1.13.2 (Kasanui) APEL/10.0 MULE XEmacs/21.1 (patch 8) (Bryce Canyon) (i386--freebsd) Organization: A.I.D. MIME-Version: 1.0 (generated by EMIKO 1.13.9 - "Euglena tripteris") Content-Type: text/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Hi, At Tue, 11 Jan 2000 17:21:01 -0800, Jordan K. Hubbard wrote: > I think the wider objective should be to make wildcarding work > for all the pkg_foo tools (where it makes sense). > > That is to say that it should be possible to say: > > pkg_info '*apache*' > pkg_delete 'emacs*' > > etc. And no, I don't have time to write the code which takes a regexp > and iteratively matches it against directory components in > /var/db/pkg, but I can certainly say that it should be easy enough to > implement for anyone who DOES have the time. :-) FYI, Sada-san (one of the committers) wrote a nice package remover named `pkg_remove' which port was posted as ports/16025 (not imported yet). It will do more than expected above, like it removes not only the packages targeted by a regexp, but also the packages which depends on the ones to be removed recursively. Try it out and get it in! I hope its powerful functionality would be integrated into pkg_delete (-r option or something), since it's somewhat confusing that both pkg_delete and pkg_remove co-exist. -- / /__ __ / ) ) ) ) / http://www.idaemons.org/knu/ Akinori MUSHA aka / (_ / ( (__( mailto:knu@idaemons.org "We are but hungry.. Associated Ita-meshi Daemons!" http://www.idaemons.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message