From owner-freebsd-stable Sat May 13 16:25:12 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.alpha1.net (mail.alpha1.net [216.88.112.3]) by hub.freebsd.org (Postfix) with ESMTP id B8A1037BB56 for ; Sat, 13 May 2000 16:25:03 -0700 (PDT) (envelope-from marius@alpha1.net) Received: from marius.org (marius.org [216.88.115.170]) by mail.alpha1.net (8.9.3/8.9.3) with ESMTP id SAA29627; Sat, 13 May 2000 18:24:26 -0500 Date: Sat, 13 May 2000 18:24:25 -0500 (CDT) From: Marius Strom X-Sender: marius@marius.org To: Rasmus Kaj Cc: "Jordan K. Hubbard" , Cy Schubert - ITSD Open Systems Group , Patrick Seal , "Chad R. Larson" , sheldonh@uunet.co.za, swb@grasslake.net, freebsd-stable@FreeBSD.ORG Subject: Re: package maintenance (Re: ucd-snmp) In-Reply-To: <84itwiu75a.fsf@frodo.sickla.raditex.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here's zsh completions for it: compctl -g '/var/db/pkg/*(/:t)' pkg_delete pkg_info -- Marius Strom Professional Geek/Unix System Administrator Alpha1 Internet http://www.marius.org/marius.pgp 0x42C74CBA Quidquid Latine Dictum Sit, Profundum Viditur. On 13 May 2000, Rasmus Kaj wrote: > >>>>> "JKH" == Jordan K Hubbard writes: > > >> 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 > > Why not pkg_delete samba ? > > JKH> What I don't understand is why the next generation of package hackers > JKH> (and I salute anyone intrepid enough to go hacking on that evil code) > JKH> hasn't just *extended* the current feature set, [...] > > I went the other (also very 'Unix-esque', IMO) way: I let the pkg_* > tools be as they are and extended the shell to make them convinient. > > Here's my tcsh completeion settings for it (since I wrote that, I have > changed to zsh, but I haven't yet rewritten the completions for it) : > > complete pkg_info "p@*@F:/var/db/pkg/@" > complete pkg_delete "p@*@F:/var/db/pkg/@" > complete pkg_checksum "p@*@F:/var/db/pkg/@" > > The last one, pkg_checksum, is a simple perl script which uses > pkg_info to get the checksums for all installed files and checks that > they matches the actual files (I originally wrote it to find the file > I had modified to make jade work for large files, not remembering that > it was mentioned in the pkg_info for jade :-) ). > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message