[3210] in RedHat Linux List
Re: RPM clobbers files
daemon@ATHENA.MIT.EDU (Al Potter)
Thu Nov 7 15:04:03 1996
To: redhat-list@redhat.com
Reply-to: Al Potter <apotter@letterkenn-emh1.army.mil>
In-reply-to: djb's message of Wed, 06 Nov 1996 20:16:47 -0500.
<199611070116.UAA12654@redhat.com>
Date: Thu, 07 Nov 1996 14:19:48 -0500
From: Al Potter <apotter@tav-linux.army.mil>
Resent-From: redhat-list@redhat.com
> Damn. It just hit me. Notice:
>
> [1001]marvin:~> rpm -qf /etc/hosts
> file /etc/hosts is not owned by any package
>
> Why? Because, it just gets created at install/upgrade time.
> We'll need to fix this in the *install* code, not in RPM. Since
> damned near everyone's /etc/hosts and /etc/resolv.conf are
> different, building and RPM of them would be kinda dumb.
ALERT ALERT Danger Will Robinson!
Well, of /etc/hosts (and others?) are not owned by any packages, then which packages, upon being upgraded, are whacking them?
Or is this the install programperforming this nefarious act?
> Why? Because, it just gets created at install/upgrade time.
> We'll need to fix this in the *install* code, not in RPM. Since
> damned near everyone's /etc/hosts and /etc/resolv.conf are
> different, building and RPM of them would be kinda dumb.
Perhaps the solution is to make a dummies.rpm which contains all those files, in header only or zero-length form, which are 100% host specific. This rpm should only need to be updated to ADD additional files, or to change the format of existing ones, and in any case, the .rpmsave facility should then function.
Al
--
+--------------------------------------------------------------------------+
| Al Potter Systems Analyst, Unix SysAdmin |
| Science Applications International Corporation |
| apotter@letterkenn-emh1.army.mil |
| #include <std_disclaimer.h> apotter@epix.net |
+--------------------------------------------------------------------------+
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null