From owner-freebsd-stable Sat May 13 2:33:22 2000 Delivered-To: freebsd-stable@freebsd.org Received: from raditex.se (gandalf.raditex.se [192.5.36.18]) by hub.freebsd.org (Postfix) with ESMTP id C905637B8B3 for ; Sat, 13 May 2000 02:33:13 -0700 (PDT) (envelope-from kaj@raditex.se) Received: (from kaj@localhost) by raditex.se (8.9.3/8.9.3) id LAA65779; Sat, 13 May 2000 11:33:05 +0200 (CEST) (envelope-from kaj@raditex.se) X-Authentication-Warning: frodo.sickla.raditex.se: kaj set sender to kaj@raditex.se using -f To: "Jordan K. Hubbard" Cc: Cy Schubert - ITSD Open Systems Group , Patrick Seal , "Chad R. Larson" , sheldonh@uunet.co.za, swb@grasslake.net, freebsd-stable@FreeBSD.ORG Subject: package maintenance (Re: ucd-snmp) References: <8645.958180717@localhost> From: Rasmus Kaj Cc: Rasmus Kaj Organization: Raditex AB - http://Raditex.se/ Date: 13 May 2000 11:33:05 +0200 In-Reply-To: "Jordan K. Hubbard"'s message of "Fri, 12 May 2000 18:18:37 -0700" Message-ID: <84itwiu75a.fsf@frodo.sickla.raditex.se> Lines: 35 User-Agent: Gnus/5.0806 (Gnus v5.8.6) XEmacs/20.4 (Emerald) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "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 :-) ). -- Rasmus Kaj ------------------ rasmus@kaj.a.se - http://Raditex.se/~kaj/ \ Never try to outstubborn a cat -Lazarus Long \------------------------------------------------- http://Raditex.se/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message