Problem with old files in freebsd-update/files
Kurt Jaeger
lists at opsec.eu
Wed Feb 28 11:20:48 UTC 2018
Hi!
> > And if I want to clean them up, I do:
> >
> > cd /var/db
> > mv freebsd-update fbsd-up-old
> > mkdir freebsd-update
> > chmod 700 freebsd-update
> > rm -rf fbsd-up-old
>
> Out of curiosity, why not just:
>
> ~ # rm -rf /var/db/freebsd-update/*
>
> Is there a reason you're moving the directory and creating a new, empty
> one?
Sometimes, depending on the storage media below, it takes time
to remove the old directory. So it's faster that way and both
the removal and the -update can be done in parallel.
--
pi at opsec.eu +49 171 3101372 2 years to go !
More information about the freebsd-ports
mailing list