From owner-freebsd-stable Fri May 12 18:16:56 2000 Delivered-To: freebsd-stable@freebsd.org Received: from zippy.cdrom.com (zippy.cdrom.com [204.216.27.228]) by hub.freebsd.org (Postfix) with ESMTP id CFCF437B52B for ; Fri, 12 May 2000 18:16:54 -0700 (PDT) (envelope-from jkh@zippy.cdrom.com) Received: from localhost (jkh@localhost [127.0.0.1]) by zippy.cdrom.com (8.9.3/8.9.3) with ESMTP id SAA08648; Fri, 12 May 2000 18:18:37 -0700 (PDT) (envelope-from jkh@zippy.cdrom.com) To: Cy Schubert - ITSD Open Systems Group Cc: Patrick Seal , "Chad R. Larson" , sheldonh@uunet.co.za, swb@grasslake.net, freebsd-stable@FreeBSD.ORG Subject: Re: ucd-snmp In-reply-to: Your message of "Fri, 12 May 2000 14:12:37 PDT." <200005122113.OAA63283@passer.osg.gov.bc.ca> Date: Fri, 12 May 2000 18:18:37 -0700 Message-ID: <8645.958180717@localhost> From: "Jordan K. Hubbard" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Let's take removing Samba as an example: > > 1. pkg_info | grep -i samba > > 2. wait for a long time. > > 3. pkg_delete samba-2.0.6 > > > Using pkg_remove, > > 1. pkg_remove -n samba What I don't understand is why the next generation of package hackers (and I salute anyone intrepid enough to go hacking on that evil code) hasn't just *extended* the current feature set, as is the Unix Way, to cover the "wildcard" case rather than creating yet another pkg_foo command to remember the name of. In other words, it's always been a failing of pkg_delete and pkg_info that they don't take "samba" as an argument and DTRT with it. Then you wouldn't need to know the exact version number of samba just to delete the thing, and commands like "pkg_info sam*" would also behave as expected. I can even think of how to do it easily with fts(3) and regex(3), it's really not a big job. I'm also done with that code, however, I disowned it long ago! :-) If you want to add a really useful new command to the pkg_install command set, I recommend implementing pkg_upgrade. - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message