On 11/28/21 6:17 PM, Alexander wrote:
...
> Lastly: From your emails it seems to me that the use of sysclean after
> upgrading is very much encouraged if not necessary. Then why is it not
> included in base (especially when it's developed by OpenBSD developers)?
> Or am I misunderstanding the requirements for inclusion of packages in
> base?
VERY WRONG (as others have said).
I've been using OpenBSD since v2.4, I have never run a "clean up" tool of
any kind. I reinstall only when replacing hardware, the rest of the time,
I run upgrades, I run snapshots and update frequently so I get a lot of
old files piling up at times. And they just don't matter.
Occasionally, I have manually deleted old libraries when I have
run a system too long and an old HD starts getting tight on space, but
that is usually an indicator that I should probably be looking at swapping
out the hardware because it has done its time and I've probably got
something better. And often not even then:
$ ls -lt /usr/lib/|tail -4
-r--r--r-- 1 root bin 274965 Feb 9 2012 libpcap.so.6.0
-r--r--r-- 1 root bin 240930 Feb 9 2012 libkvm.so.12.0
-r--r--r-- 1 root bin 323995 Feb 9 2012 libexpat.so.9.0
-r--r--r-- 1 root bin 2593417 Feb 9 2012 libc.so.62.0
(wow. that's an old machine.)
Using an automatic cleanup tool is far more likely to CAUSE problems
than to fix problems. I'm not saying they /often/ cause problems,
but since old files laying around basically never cause problems other
than a small amount of space, there's some risk and almost no gain.
That machine with files left over from 2012? It's got a 40G hard disk.
You will have trouble convincing me in 2021 that you are running out
of disk space and thus need to "clean" your system.
$ dmesg|grep ^wd
wd0 at pciide0 channel 0 drive 0: <ST340014A>
wd0: 16-sector PIO, LBA48, 38146MB, 78125000 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
(to be fair, that machine fell off the 'net for a few years, I assumed
it had died. Then it suddenly came back on line, so I brought it up to
-current, so it skipped a lot of releases. But it's /usr partition is
well under 50% full, so it has some life left...)
Nick.
No comments:
Post a Comment