Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread Frank Küster
Kevin Mark [EMAIL PROTECTED] schrieb: On Tue, Aug 24, 2004 at 06:00:47PM +0200, Frank Küster wrote: John Hasler [EMAIL PROTECTED] wrote: ...and having a lot of empty files in /etc is just pointless. Where would any empty files come from? How should a package tell dpkg to install an

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Summerfield
John Hasler wrote: Thomas Adam writes: ...But removing the symlinks in /etc/rc?.d/* for whatever DM is running... If you remove them they will be recreated when you upgrade the package. Sysvconfig allows you to disable stuff. Just select Enable/Disable in the main menu and follow

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread Paul Gear
John Hasler wrote: I wrote: Just off the top of my head I see no reason why these files [created by maintainer scripts] could not be included in the package empty and filled in by the scripts. This would identify the files as belonging to the package and also allow dpkg to remove them,

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Hasler
Paul Gear writes: In rpm, they're typically not empty - they're full of interesting and useful comments, and potentially usable defaults. We are talking about files the contents of which are created by maintainer scripts. Other configuration files in Debian packages _are_ full of interesting

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Summerfield
John Hasler wrote: Paul Gear writes: In rpm, they're typically not empty - they're full of interesting and useful comments, and potentially usable defaults. We are talking about files the contents of which are created by maintainer scripts. Other configuration files in Debian packages

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Hasler
Frank Küster writes: But this would have the consequence that all those files would have to be created by dpkg, and clutter /etc. No files would be created that were not subsequently filled in by a maintainer script. I don't know where you get the idea that that any files, empty or otherwise,

Sysvconfig was: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Hasler
John Summerfield writes: I use file-rc. I didn't think that people who know about file-rc and choose to install it would be interested in sysvconfig (note the name). Patches are welcome. Now it needs to get part of the base install... I see little chance of that. For other RH (and SuSE)

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Hasler
Paul Gear writes: ...when i come to a config file that is important to the running of a package, i expect that there should be some way to trace it back to the fact that relates to the package. Please read the thread from the beginning. That is precisely what we are talking about. Evidently

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread Colin Watson
On Wed, Aug 25, 2004 at 08:33:47AM -0500, John Hasler wrote: Frank Küster writes: But this would have the consequence that all those files would have to be created by dpkg, and clutter /etc. No files would be created that were not subsequently filled in by a maintainer script. I don't

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread Frank Küster
John Hasler [EMAIL PROTECTED] schrieb: Frank Küster writes: But this would have the consequence that all those files would have to be created by dpkg, and clutter /etc. No files would be created that were not subsequently filled in by a maintainer script. I don't know where you get the

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Hasler
John Summerfield writes: I know shorewall 2.0 as packaged for Debian has an empty /etc/shorewall, but why it shouldn't be full of sample config files containing lots of interesting comments I really don't know. Because you have not filed a bug with a patch containing such a file. Even where

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Hasler
Frank Küster writes: There are maintainer scripts that create different configuration files, or a different number of configuration files, depending on the existing settings on the installing computer - or depending on debconf answers. Those scripts could remove the files they don't use. --

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Hasler
Colin Watson writes: What were you planning to do on upgrade? Normally, dpkg would set the files back to empty. And the postinst will fill them up again (the preinst could save them, but that's ugly). There is no point in discussing this further, though, if dpkg is going to have a registration

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Summerfield
John Hasler wrote: John Summerfield writes: I know shorewall 2.0 as packaged for Debian has an empty /etc/shorewall, but why it shouldn't be full of sample config files containing lots of interesting comments I really don't know. Because you have not filed a bug with a patch containing

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread Sven Mueller
John Hasler [u] wrote on 25/08/2004 17:23: Frank Küster writes: There are maintainer scripts that create different configuration files, or a different number of configuration files, depending on the existing settings on the installing computer - or depending on debconf answers. Those scripts could

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread Tim Kelley
On Wed, Aug 25, 2004 at 09:14:53PM +0800, John Summerfield wrote: John Hasler wrote: Or even better maybe, four shorewall packages - the current one being renamed shorewall-common and the others each depending on shorewall-common and having sample configurations for one interface, two

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Hasler
Tim Kelley quotes: On Wed, Aug 25, 2004 at 09:14:53PM +0800, John Summerfield wrote: John Hasler wrote: Or even better maybe, four shorewall packages - the current one being renamed shorewall-common and the others each depending on shorewall-common and having sample configurations

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Summerfield
Tim Kelley wrote: On Wed, Aug 25, 2004 at 09:14:53PM +0800, John Summerfield wrote: John Hasler wrote: Or even better maybe, four shorewall packages - the current one being renamed shorewall-common and the others each depending on shorewall-common and having sample configurations for

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread John Summerfield
John Hasler wrote: Tim Kelley quotes: On Wed, Aug 25, 2004 at 09:14:53PM +0800, John Summerfield wrote: John Hasler wrote: Or even better maybe, four shorewall packages - the current one being renamed shorewall-common and the others each depending on shorewall-common and having sample

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-25 Thread Colin Watson
On Thu, Aug 26, 2004 at 06:17:49AM +1000, Paul Gear wrote: John Hasler wrote: That is precisely what we are talking about. What you said was We are talking about files the contents of which are created by maintainer scripts. My point was that it doesn't matter what creates it (the package

dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Paul Gear
Hi folks, What is the canonical method for determining to which package an installed file belongs? dpkg -S seems to be the right *sort* of thing, but doesn't always work: enoch:/share/download # dpkg -S /etc/apt/apt.conf.d/70debconf debconf: /etc/apt/apt.conf.d/70debconf enoch:/share/download #

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Thomas Adam
On Tue, Aug 24, 2004 at 09:44:33PM +1000, Paul Gear wrote: Hi folks, What is the canonical method for determining to which package an installed file belongs? dpkg -S seems to be the right *sort* of thing, but doesn't always work: enoch:/share/download # dpkg -S

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Andreas Janssen
Hello Paul Gear ([EMAIL PROTECTED]) wrote: What is the canonical method for determining to which package an installed file belongs? dpkg -S seems to be the right *sort* of thing, but doesn't always work: enoch:/share/download # dpkg -S /etc/apt/apt.conf.d/70debconf debconf:

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Paul Gear
Thomas Adam wrote: On Tue, Aug 24, 2004 at 09:44:33PM +1000, Paul Gear wrote: Hi folks, What is the canonical method for determining to which package an installed file belongs? dpkg -S seems to be the right *sort* of thing, but doesn't always work: enoch:/share/download # dpkg -S

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Jason Rennie
On Tue, Aug 24, 2004 at 01:11:33PM +0100, Thomas Adam wrote: It's doing *exactly* what you asked of it. Remember that dpkg -S will only work for files that were *in* a package initially and not ones that were *created*. /etc/apt/sources.list is created by apt-setup from 'base-config', but does

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Thomas Adam
On Tue, Aug 24, 2004 at 10:28:09PM +1000, Paul Gear wrote: Is it fairly common, then, that packages only create their config files, and don't include them in the package originally. I can see times when Of course it is. There are *hundreds* of files that are created in this manner, usually

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Thomas Adam
On Tue, Aug 24, 2004 at 08:49:57AM -0400, Jason Rennie wrote: Geez. Try answering the question, not insulting the guy. The dpkg man page is unclear on what -S does: I wasn't insulting anybody. The *words* were there, only to place emphasis on the fundamental differences in operation.

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Hasler
Thomas Adam writes: As I have said, if the file was created by an application, then it clearly cannot belong to a package. The question was about files created by the maintainer scripts. Just off the top of my head I see no reason why these files could not be included in the package empty and

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Carl Fink
On Tue, Aug 24, 2004 at 01:54:41PM +0100, Thomas Adam wrote: On Tue, Aug 24, 2004 at 08:49:57AM -0400, Jason Rennie wrote: dpkg -S | --search filename-search-pattern ... Search for a filename from installed packages. How is this unclear, exactly? It

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Thomas Adam
On Tue, Aug 24, 2004 at 08:23:16AM -0500, John Hasler wrote: Thomas Adam writes: As I have said, if the file was created by an application, then it clearly cannot belong to a package. The question was about files created by the maintainer scripts. Was it now? I don't believe so, although

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Thomas Adam
On Tue, Aug 24, 2004 at 09:24:45AM -0400, Carl Fink wrote: On Tue, Aug 24, 2004 at 01:54:41PM +0100, Thomas Adam wrote: On Tue, Aug 24, 2004 at 08:49:57AM -0400, Jason Rennie wrote: dpkg -S | --search filename-search-pattern ... Search for a filename from

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Paul Gear
Jason Rennie wrote: ... Geez. Try answering the question, not insulting the guy. Don't worry - i'm used to it on this list by now... :-) -- Paul http://paulgear.webhop.net -- Did you know? Email addresses can be forged easily. This message is signed with GNU Privacy Guard

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Summerfield
Thomas Adam wrote: On Tue, Aug 24, 2004 at 09:24:45AM -0400, Carl Fink wrote: On Tue, Aug 24, 2004 at 01:54:41PM +0100, Thomas Adam wrote: On Tue, Aug 24, 2004 at 08:49:57AM -0400, Jason Rennie wrote: dpkg -S | --search filename-search-pattern ...

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Henrique de Moraes Holschuh
On Tue, 24 Aug 2004, Thomas Adam wrote: On Tue, Aug 24, 2004 at 10:28:09PM +1000, Paul Gear wrote: Is it fairly common, then, that packages only create their config files, and don't include them in the package originally. I can see times when Of course it is. There are *hundreds* of files

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Henrique de Moraes Holschuh
On Tue, 24 Aug 2004, Thomas Adam wrote: On Tue, Aug 24, 2004 at 08:23:16AM -0500, John Hasler wrote: Just off the top of my head I see no reason why these files could not be included in the package empty and filled in by the scripts. This would identify the files as belonging to the

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Kevin B. McCarty
John Hasler writes: Just off the top of my head I see no reason why these files could not be included in the package empty and filled in by the scripts. This would identify the files as belonging to the package and also allow dpkg to remove them, eliminating the need for the postrm to do so.

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Thomas Adam
On Tue, Aug 24, 2004 at 11:33:09AM -0300, Henrique de Moraes Holschuh wrote: On Tue, 24 Aug 2004, Thomas Adam wrote: On Tue, Aug 24, 2004 at 10:28:09PM +1000, Paul Gear wrote: Is it fairly common, then, that packages only create their config files, and don't include them in the package

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Rthoreau
On Tue, Aug 24, 2004 at 01:54:41PM +0100, Thomas Adam wrote: On Tue, Aug 24, 2004 at 08:49:57AM -0400, Jason Rennie wrote: dpkg -S | --search filename-search-pattern ... Search for a filename from installed packages. How is this unclear, exactly? It

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Carl Fink
On Tue, Aug 24, 2004 at 09:22:16AM -0500, Rthoreau wrote: Why just use our trusty old friend find? Because the question is Which package was responsible for creating this conffile? How can find answer that? -- Carl Fink [EMAIL PROTECTED] Jabootu's Minister of Proofreading

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Hasler
I wrote: Just off the top of my head I see no reason why these files [created by maintainer scripts] could not be included in the package empty and filled in by the scripts. This would identify the files as belonging to the package and also allow dpkg to remove them, eliminating the need for

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Hasler
Henrique de Moraes Holschuh writes: Actually, we have been requesting this functionality to the dpkg crew for a while. It will arrive someday. The idea is that we will register dynamically-created stuff with a package in the maintainer script. That's a good solution. It deals with the

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Hasler
Rthoreau writes: Why just use our trusty old friend find? also you have locate, whereis, and a bunch of others, I must say find can do about anything. How do you propose to get find to tell you which files were created by a particular package, or which package created a particular file? File

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Martin Dickopp
Thomas Adam [EMAIL PROTECTED] writes: On Tue, Aug 24, 2004 at 09:24:45AM -0400, Carl Fink wrote: On Tue, Aug 24, 2004 at 01:54:41PM +0100, Thomas Adam wrote: On Tue, Aug 24, 2004 at 08:49:57AM -0400, Jason Rennie wrote: dpkg -S | --search filename-search-pattern ...

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Hasler
Martin writes: One possibility would be that the maintainer script which creates the file stores the filename in something like /var/lib/dpkg/info/PACKAGE.createdfiles. Gaak! No! The archive must _only_ be accessed via the packaging system tools. -- John Hasler [EMAIL PROTECTED] (John

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Frank Küster
John Hasler [EMAIL PROTECTED] wrote: ...and having a lot of empty files in /etc is just pointless. Where would any empty files come from? How should a package tell dpkg to install an empty file, if it needs that? Regards, Frank -- Frank Küster, Biozentrum der Univ. Basel Abt.

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Tim Kelley
On Tue, Aug 24, 2004 at 10:18:08PM +0800, John Summerfield wrote: Seems to me the idea of creating configuration files on the fly is broken. I much prefer this: Yes, so how exactly, for example, is phpmyadmin supposed to touch files, such as httpd.conf, so that it works and is properly

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Martin Dickopp
John Hasler [EMAIL PROTECTED] writes: Martin writes: One possibility would be that the maintainer script which creates the file stores the filename in something like /var/lib/dpkg/info/PACKAGE.createdfiles. Gaak! No! The archive must _only_ be accessed via the packaging system tools. I

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Paul E Condon
On Tue, Aug 24, 2004 at 11:35:28AM -0500, Tim Kelley wrote: On Tue, Aug 24, 2004 at 10:18:08PM +0800, John Summerfield wrote: Seems to me the idea of creating configuration files on the fly is broken. I much prefer this: Yes, so how exactly, for example, is phpmyadmin supposed to touch

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Summerfield
Tim Kelley wrote: On Tue, Aug 24, 2004 at 10:18:08PM +0800, John Summerfield wrote: Seems to me the idea of creating configuration files on the fly is broken. I much prefer this: Yes, so how exactly, for example, is phpmyadmin supposed to touch files, such as httpd.conf, so that it works

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Carl Fink
On Wed, Aug 25, 2004 at 08:57:42AM +0800, John Summerfield wrote: 1. That I want to start a daemon as soon as I've installed it Typically I want to install at the office, configure in the field. So download the files but don't complete the install until you're in the field. The -d flag to

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Summerfield
Paul E Condon wrote: It appears that there are two distinct roles for packages with respect to files: 1 the .deb of the package contains an initial copy of the file 2 the package programs/scripts are permitted/expected to maintain and update the file as needed. It is unually assumed that only one

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Thomas Adam
On Tue, Aug 24, 2004 at 09:06:50PM -0400, Carl Fink wrote: 3. That if I have KDE|GNOME|whatever DTE installed I always want to run it when I boot. Okay, that annoys me, too. rcconf is quite handy. But removing the symlinks in /etc/rc?.d/* for whatever DM is running, or editing

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread John Hasler
Thomas Adam writes: ...But removing the symlinks in /etc/rc?.d/* for whatever DM is running... If you remove them they will be recreated when you upgrade the package. Sysvconfig allows you to disable stuff. Just select Enable/Disable in the main menu and follow directions. -- John Hasler

Re: dpkg / apt equivalent to 'rpm -qf'?

2004-08-24 Thread Kevin Mark
On Tue, Aug 24, 2004 at 06:00:47PM +0200, Frank Küster wrote: John Hasler [EMAIL PROTECTED] wrote: ...and having a lot of empty files in /etc is just pointless. Where would any empty files come from? How should a package tell dpkg to install an empty file, if it needs that?