(responding to Ed)
The easiest way...
done.
The script looks like this:
-----
#!/usr/bin/sh
# clean out files left behind by the compiling that follows patching or
# updating the kernel and/or the driver for the nvidia graphics card.
rm -rf /var/cache/akmods/nvidia/*
exit $?
# done!
-----
That I may better understand...
Am I correct in assuming which shell I use does not matter in this case?
What is the difference between "/usr/bin/sh" and "/bin/sh"?
What day of the week will this be run?
What is the significance of the "98-" at the beginning of the file name?
/var/cache/akmods/nvidia/ was one of the things I cleaned out earlier in
this thread (or this thread's parent), but I can't find how much space
that freed. But I vaguely recall it being a lot.
FWIW, once you've deleted all the files in
/var/cache/akmods/nvidia only 2 files will be created
when a new kernel is installed. The log and the rpm.
They will total approx 12.5MB. ... Just know that even
if you do forget it will take about 84,000 new kernels
before 1GB is used.
1GB divided by 12.5MB = 80 new kernels.
Once the script above has run, I will check on /var space again and post
results. I think the major things have been cleaned out, and whatever
junk is left is, as a few list members have said, not worth the trouble.
thanks,
Bill.