pkg clean question

Baptiste Daroussin bapt at FreeBSD.org
Mon Aug 3 17:02:22 UTC 2015


On Mon, Aug 03, 2015 at 09:49:33AM -0700, jungle Boogie wrote:
> On 3 August 2015 at 09:13, Paul Mather <freebsd-lists at gromit.dlib.vt.edu> wrote:
> > On Aug 3, 2015, at 11:39 AM, Zoran Kolic <zkolic at sbb.rs> wrote:
> >
> >> Amd64, 9.3. Updated few times, packages also. At first I
> >> found on laptop that /var directory was at 102%. Using
> >> "pkg clean" i removed about 400mb of cache packages from
> >> /var/cache/pkg. Tried to clean desktop cache and the out-
> >> put of the command was "nothing to do". I see about 400
> >> mb of files in the cache directory. Is it safe to remove
> >> them by the hand?
> >
> >
> > Use "pkg clean -ay" to delete all cached packages, not just the ones that are no longer current or provided by the upstream repository.
> >
> 
> 
> You may want to autoremove, too:
> 
> autoremove
>              Delete packages which were automatically installed as dependen-
>              cies and are not required any more.
> 
> > Cheers,
> >
> > Paul.
> 
> 
Note that since recent updates of pkg there is a new AUTOCLEAN option to add in
pkg.conf which will automatically cleanup the cache after each pkg operation.

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20150803/118bfa09/attachment.bin>


More information about the freebsd-stable mailing list