pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: To free disk space



On Thursday, July 11, 2013 16:36:32 Isaac Isao Saito wrote:
> pkgsrc-users,
> 
> continued from my previous question [0], I want to free disk space so
> much of which is occupied by many packaged installed via pkgsrc by
> mistake recently. After this mistake the disk usage doubled to 16GB.
> 
> Simply, how can I do so?
> 
> Unistalling many packages by pkg_delete doesn't seem to help. `df`
> returns nearly the same disk usage before & after.
> 
> Manual [1] says `make clean` / `make clean-depends` would remove
> compiled files in `work`, but the following doesn't work for me:
> 
>     # cd /usr/share/pkgsrc/devel    (where I ran `bmake` by mistake)
>     # make clean
>     Makefile:1657: *** missing separator.  Stop.
>     # make clean-depends
>     Makefile:1657: *** missing separator.  Stop.
> 
> Removing `work` in each directory one-by-one under `devel` might work,
> but it's too tedious and I want to save it as my last resort.
> 
> Any idea? Thank you very much.

I have "WRKOBJDIR=/usr/obj/pkgsrc" in /usr/pkg/etc/mk.conf and these lines in 
/etc/periodic.conf:

daily_clean_tmps_enable="YES"                           # Delete stuff daily
daily_clean_tmps_dirs="/tmp /var/db/pkgin/cache /usr/pkgsrc/distfiles"  # 
Delete under here
daily_clean_tmps_dirs="$daily_clean_tmps_dirs /usr/obj /crypt/tmp 
/usr/pkgsrc/packages"
daily_clean_tmps_days="30"                              # If not accessed for

Pierre
-- 
li ze te'a ci vu'u ci bi'e te'a mu du
li ci su'i ze te'a mu bi'e vu'u ci



Home | Main Index | Thread Index | Old Index