|
Home > Archive > Debian Developers > November 2006 > Purging configurations of non-installed transitional packages
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Purging configurations of non-installed transitional packages
|
|
| Adrian von Bidder 2006-11-07, 1:20 pm |
| | |
| SZALAY Attila 2006-11-13, 9:05 am |
| Hi All,
On Tue, 2006-11-07 at 15:33 +0100, Adrian von Bidder wrote:
>
> What happened: Somehow, I seem to have transitioned from sarge ssh to
> openssh-client/-server directly without first installing the 'ssh'
> transitional package because I installed some package which depended on
> openssh-client directly. With the above operation, I then tried to purge
> the old ssh package - which, obviously, blew my ssh configuration along
> with the 'sshd' user. In this case, I was prepared because I had an idea
> that this could happen - but nonetheless, I think it shouldn't.
Hm. I don't understand something. If I recall correctly
1) (almost) Everything under /etc/ is config file
2) No two package can contain the same _installed_ file.
If this two is true (and I think so) then you couldn't install the old
ssh package and the new one. So how can you do this?
The transient package is because the same config file problem. But noe
to keep them, but to enable to install new new package with the same
file.
Or I missing something?
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Michael Biebl 2006-11-13, 9:05 am |
| SZALAY Attila schrieb:
>
> 2) No two package can contain the same _installed_ file.
>
> If this two is true (and I think so) then you couldn't install the old
> ssh package and the new one. So how can you do this?
>
If the new package has a "Replaces: old_package", it will *take over*
the conflicting config_files from the old package [1].
Cheers,
Michael
[1]
http://www.us.debian.org/doc/debian...html#s-replaces
| |
| Henrique de Moraes Holschuh 2006-11-13, 9:05 am |
| On Thu, 09 Nov 2006, Michael Biebl wrote:
>
> If the new package has a "Replaces: old_package", it will *take over*
> the conflicting config_files from the old package [1].
Except when it doesn't.
Config files != conffiles. Conffiles are managed by dpkg and will work just
fine, as they will indeed be marked as belonging to the new package.
Config files, however, are managed by the package maintainer scripts and are
very likely to be handled incorrectly unless you upgrade to the *latest*
version of the "transitional" package *first* before you purge it.
There is also the matter of work directories in /var which packages like to
purge, etc.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| SZALAY Attila 2006-11-13, 9:05 am |
| Hi All!
On Thu, 2006-11-09 at 00:05 +0100, Michael Biebl wrote:
>
> If the new package has a "Replaces: old_package", it will *take over*
> the conflicting config_files from the old package [1].
And there are Packages with Replaces field filled but Conflicts field
not?
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Wouter Verhelst 2006-11-13, 9:05 am |
| On Thu, Nov 09, 2006 at 12:45:34PM +0100, SZALAY Attila wrote:
> Hi All!
>
> On Thu, 2006-11-09 at 00:05 +0100, Michael Biebl wrote:
>
> And there are Packages with Replaces field filled but Conflicts field
> not?
Yes, since Replaces can have two possible meanings. Please read the
Policy document for details.
--
Fun will now commence
-- Seven Of Nine, "Ashes to Ashes", stardate 53679.4
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| SZALAY Attila 2006-11-13, 9:05 am |
| Hi All,
On Thu, 2006-11-09 at 18:00 +0100, Wouter Verhelst wrote:
>
> Yes, since Replaces can have two possible meanings. Please read the
> Policy document for details.
Okay, okay. Let's be more specific. openssh-client and openssh-server
both Conflicts with ssh (<< 1:3.8.1p1-9)
ntp package also Conflicts with ntp-server package. So I don't
understand how it happened.
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Brian May 2006-11-13, 9:05 am |
| >>>>> "SZALAY" == SZALAY Attila <sasa@pheniscidae.tvnetwork.hu> writes:
SZALAY> Okay, okay. Let's be more specific. openssh-client and
SZALAY> openssh-server both Conflicts with ssh (<< 1:3.8.1p1-9)
SZALAY> ntp package also Conflicts with ntp-server package. So I
SZALAY> don't understand how it happened.
The fact the package conflict just means that it is not possible have
them fully installed at the same time.
It is still possible to have one package fully installed, while the
other one is removed but not purged.
If you run "dpkg --purge" on the second package it will still run the
maintainer scripts, which will delete its configuration files.
A new version of the second package will not help, as this package has
no way of knowing why you are doing the purge (its it because you are
deleting the package or is it because you have replaced the package
with another one?).
This is, IMHO, a limitation of not having configuration files managed
by dpkg.
--
Brian May <bam@debian.org>
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|
|
|
|
|