Re: Problem with old files in freebsd-update/files

2018-02-28 Thread Kurt Jaeger
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.

-- 
p...@opsec.eu+49 171 3101372 2 years to go !
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Problem with old files in freebsd-update/files

2018-02-28 Thread Mathieu Arnold
On Tue, Feb 27, 2018 at 11:48:31PM +, 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


signature.asc
Description: PGP signature


Re: Problem with old files in freebsd-update/files

2018-02-27 Thread Adam
On Tue, Feb 27, 2018 at 1:51 PM, Dave Horsfall  wrote:

> 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...
>
> aneurin# pwd
> /usr/local/freebsd-update/files
>

I believe you asked about pkg cache files which are completely different
than freebsd-update cache files.

-- 
Adam
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Problem with old files in freebsd-update/files

2018-02-27 Thread Janky Jay, III
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?

Regards,
Janky Jay, III



signature.asc
Description: OpenPGP digital signature


Re: Problem with old files in freebsd-update/files

2018-02-27 Thread Kurt Jaeger
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

-- 
p...@opsec.eu+49 171 3101372 2 years to go !
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Problem with old files in freebsd-update/files

2018-02-27 Thread Dave Horsfall

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...


aneurin# pwd
/usr/local/freebsd-update/files
aneurin# ls | wc -l
   49445
aneurin# du -sk .
   1616854  .
aneurin# ls -lt | tail
-rw-r--r--  1 root  wheel602524 Nov  8  2014 
1989e6faab36e0ccc9324af44fb6928586772fc40318324fb6f0159ce07db83f.gz
-rw-r--r--  1 root  wheel597128 Nov  8  2014 
614014e1e1d4911440c94f7f9144821652109b8409173de30a0104de43994c37.gz
-rw-r--r--  1 root  wheel316738 Nov  8  2014 
791153db5706bc7c90feb891b6396a284cfd466478ae99ae37865598e810c946.gz
-rw-r--r--  1 root  wheel   2071102 Nov  8  2014 
47110fb62b51ef4c7ae1d8a4c8fc1b4b96d7aabc8581a4069d95dd7b23183f62.gz
-rw-r--r--  1 root  wheel586770 Nov  8  2014 
f9e0c754890cea69f72d27a3a60fd3d6e13f3332de23a1ecf36b51633a6df089.gz
-rw-r--r--  1 root  wheel 18427 Nov  8  2014 
b77d9d3a7e25dbff03c03e7bdec9439df52944c3ad798eda3b0d52f8d4fb2d1e.gz
-rw-r--r--  1 root  wheel   4680559 Nov  8  2014 
beed4d84d6da3bc99f097a36095ea273fa5e1d72fb44554ca3aac1aee7b77958.gz
-rw-r--r--  1 root  wheel  15731339 Nov  8  2014 
3fcea2e78cbe67c42c2e74464d71a72ced6627871102e9b18d4f88cd0f0a4744.gz
-rw-r--r--  1 root  wheel 24945 Nov  8  2014 
3cdd4a6ea017cdfdc37283c69a265ff89be327addbf0fef7c793b6e275e34c60.gz
-rw-r--r--  1 root  wheel 20862 Nov  8  2014 
1b1e8f42628bcadd6b9a073012d798b0a4809bf72c1bf7cebefae7de5af7.gz

Bit old, aren't they?

--
Dave Horsfall DTM (VK2KFU)  "Those who don't understand security will suffer."
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"