I am cleaning up my 4-STABLE system. After a fresh installworld, I am looking at files that did not get touched by the install. Is it safe to remove all such files? In particular, I am looking at /usr/libexec/lib-elf.so.1, which has the schg flag set. I am afraid to remove this for fear of making my system unbootable. Could somebody please reassure me that it is ok to noschg and remove this old file? Thanks Geoffrey
On Wed, 25 Jun 2003, Geoffrey T. Falk wrote: GTF> I am cleaning up my 4-STABLE system. After a fresh installworld, I am GTF> looking at files that did not get touched by the install. Is it safe to GTF> remove all such files? GTF> GTF> In particular, I am looking at /usr/libexec/lib-elf.so.1, which has the GTF> schg flag set. I am afraid to remove this for fear of making my system GTF> unbootable. Could somebody please reassure me that it is ok to noschg GTF> and remove this old file? My 4.8-R and 4.8-S systems do not have this file: marck@woozle:~> l -o /usr/libexec/lib-elf.so.1 ls: /usr/libexec/lib-elf.so.1: No such file or directory marck@woozle:~> uname -a FreeBSD woozle.rinet.ru 4.8-STABLE FreeBSD 4.8-STABLE #4: Wed Apr 16 17:28:12 MSD 2003 marck@woozle.rinet.ru:/usr/obj/lh/src/sys/woozle i386 root@kucha:/var# l -o /usr/libexec/lib-elf.so.1 ls: /usr/libexec/lib-elf.so.1: No such file or directory root@kucha:/var# uname -a FreeBSD kucha.rinet.ru 4.8-RELEASE FreeBSD 4.8-RELEASE #2: Tue Apr 1 21:02:29 MSD 2003 marck@kucha.rinet.ru:/usr/obj/FreeBSD/src.stable-48/sys/kucha i386 So, I suppose this file can be safely removed. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------
On Wed, Jun 25, 2003 at 11:52:55PM -0600, Geoffrey T. Falk wrote:> I am cleaning up my 4-STABLE system. After a fresh installworld, I am > looking at files that did not get touched by the install. Is it safe to > remove all such files?No, it is not always safe. Some files are only updated if the new file is different from the old file. The include files are an example of this as to avoid fooling makefiles into believing that stuff need to be recompiled when it is just the date of an include file that has changed and not its contents.> > In particular, I am looking at /usr/libexec/lib-elf.so.1, which has the > schg flag set. I am afraid to remove this for fear of making my system > unbootable. Could somebody please reassure me that it is ok to noschg > and remove this old file?There shouldn't be any file named /usr/libexec/lib-elf.so.1 so if you actually have one it is safe to remove it (and time to start investigating where it came from), but if you actually meant /usr/libexec/ld-elf.so.1 then you should *NOT* remove it. /usr/libexec/ld-elf.so.1 is needed for running any dynamically linked programs. It is not quite as critical as /sbin/init or /kernel but nearly so. It is precisely because this file is so critical that it is not updated unless it has actually changed. In general the few files that have the schg flag set has it for good reasons. -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se