Problem with old files in freebsd-update/files
Mathieu Arnold
mat at FreeBSD.org
Wed Feb 28 10:57:47 UTC 2018
On Tue, Feb 27, 2018 at 11:48:31PM +0000, Janky Jay, III wrote:
> Hello,
>
> On 02/27/2018 01:31 PM, Kurt Jaeger wrote:
> > Hi!
> >
> >> FreeBSD 10.4-RELEASE-p3 (GENERIC) #0: Tue Nov 14 09:06:09 UTC 2017
> >>
> >> I wrote about this before, and was told to use "pkg clean" to clean up old
> >> files which I now do every week, but...
> >
> > I have those files in /var/db/freebsd-update/
> >
> > 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?
From time to time, there are tens of thousands of files directly in
this directory, and using * ends up saying that the argument list is too
long.
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20180228/f4249a50/attachment.sig>
More information about the freebsd-ports
mailing list