Re: pkg_dig - sh(1) script

2006-09-29 Thread Sideris Michael
On Fri, Sep 29, 2006 at 09:08:18AM -0400, Jeff Quast wrote: On 9/29/06, Sideris Michael [EMAIL PROTECTED] wrote: I don't get how tagging will help keeping your package list as small as possible. Let me give an example: We have 2 packages, Y and Z that were explicitly installed and are

Re: pkg_dig - sh(1) script

2006-09-29 Thread Sideris Michael
On Fri, Sep 29, 2006 at 11:41:29PM +0930, Graham Gower wrote: The dependencies should get a reference counter rather than a tag. Graham Can you elaborate a bit on that by giving an example? -- Sideris Michael http://black.daemons.gr/msid/

Re: pkg_dig - sh(1) script

2006-09-29 Thread Marc Espie
On Fri, Sep 29, 2006 at 03:22:39PM +0300, Sideris Michael wrote: On Thu, Sep 28, 2006 at 06:37:18PM +0200, Marc Espie wrote: And of course there are common situations that neither approach handles very well. If I install openldap-server it will install openldap-client as a dependancy. If

Re: pkg_dig - sh(1) script

2006-09-29 Thread Sideris Michael
On Fri, Sep 29, 2006 at 04:26:01PM +0200, Marc Espie wrote: Just remove everything you don't need that was not tagged as explicitly installed, wanted by the user. Be specific. Remove what? The dependencies won't be marked as explicitly installed. They are going to be removed? They should not.

Re: pkg_dig - sh(1) script

2006-09-28 Thread Marc Espie
Don't waste too much time perfecting this. The right approach is to have pkg_add tag packages that the user really installed vs. stuff that is needed for dependencies. It's in my queue of things to do.

Re: pkg_dig - sh(1) script

2006-09-28 Thread Paul de Weerd
On Thu, Sep 28, 2006 at 12:08:33PM +0200, Marc Espie wrote: | Don't waste too much time perfecting this. | | The right approach is to have pkg_add tag packages that the user really | installed vs. stuff that is needed for dependencies. It's in my queue | of things to do. I quite often want

Re: pkg_dig - sh(1) script

2006-09-28 Thread Sideris Michael
On Thu, Sep 28, 2006 at 12:08:33PM +0200, Marc Espie wrote: Don't waste too much time perfecting this. I do not. I am aware of the fact that this cannot be merged with the rest of system the way it is. But if there are any bugs I would like to fix them. The right approach is to have pkg_add

Re: pkg_dig - sh(1) script

2006-09-28 Thread Darrin Chandler
On Thu, Sep 28, 2006 at 04:02:04PM +0300, Sideris Michael wrote: On Thu, Sep 28, 2006 at 12:08:33PM +0200, Marc Espie wrote: Don't waste too much time perfecting this. I do not. I am aware of the fact that this cannot be merged with the rest of system the way it is. But if there are any

Re: pkg_dig - sh(1) script

2006-09-28 Thread Paul de Weerd
On Thu, Sep 28, 2006 at 05:29:24PM +0300, Sideris Michael wrote: | Consider this. You install openldap-server and openldap-client installs | as a dependency. You decide to uninstall openldap-server using something | like: | | pkg_delete -F clean openldap-server | | The system presents you with

Re: pkg_dig - sh(1) script

2006-09-28 Thread Darrin Chandler
And of course there are common situations that neither approach handles very well. If I install openldap-server it will install openldap-client as a dependancy. If I later uninstall openldap-server I may need to keep openldap-client. Or not. So deleting package dependancies should not be

pkg_dig - sh(1) script

2006-09-27 Thread Sideris Michael
pkg_dig is a small sh(1) script that extracts useful information from installed packages. The reason I decided to implement a script like this was to provide a missing feature of pkg_delete(1). Let me give you an example: Let's say we have 2 packages, Y and Z. Package: Y Dependencies: A, B, C

Re: pkg_dig - sh(1) script

2006-09-27 Thread Paul Stoeber
Here's a variation on the theme that serves me well. #!/bin/sh # # pkg_nuke - delete unneeded packages # # Usage: # pkg_info wanted # vi wanted # keep only the lines you want # pkg_nuke wanted # # All packages will be deleted, except the # wanted packages and their dependencies. # [ $#

Re: pkg_dig - sh(1) script

2006-09-27 Thread Sideris Michael
On Thu, Sep 28, 2006 at 01:27:31AM +0300, Paul Irofti wrote: I like your tool, it's nicer than cat-ing through pkgdb. Thanks. I noticed duplicates with pkgs that are output by your script, some dependencies are printed in the 'You may also delete' field too. There are no duplicates. In the

Re: pkg_dig - sh(1) script

2006-09-27 Thread Sideris Michael
I made a modification to resolve a minor inconvenience I noticed. Trying pkg_dig with python-tkinter was giving me this result: [EMAIL PROTECTED] msid $ pkg_dig python-tkinter *- Package matched: python-tkinter-2.4.3p0 |- Dependencies: tcl-8.4.7p1 python-2.4.3p0 tk-8.4.7 |- Required by: none |-