Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2000 18:18:37 -0700
From:      "Jordan K. Hubbard" <jkh@zippy.cdrom.com>
To:        Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
Cc:        Patrick Seal <patseal@hyperhost.net>, "Chad R. Larson" <chad@DCFinc.com>, sheldonh@uunet.co.za, swb@grasslake.net, freebsd-stable@FreeBSD.ORG
Subject:   Re: ucd-snmp 
Message-ID:  <8645.958180717@localhost>
In-Reply-To: Your message of "Fri, 12 May 2000 14:12:37 PDT." <200005122113.OAA63283@passer.osg.gov.bc.ca> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8645.958180717>