Regain Disk Space from Homebrew
One of my favorite utilities is Homebrew, the shell utility for installing and upgrading other utilities -- it's a lazy developer's dream. Dreams can easily turn to nightmares, however, and I recently learned that Homebrew caches older versions of installed packages, leading to loads of disk space being used up by old files.
Want all of that disk space back? Run brew cleanup -s
:
I understand why Homebrew keeps the previous versions around but when utilities are stable, it's really time to take back the bytes. My first run of brew cleanup -s
recovered 640MB of disk space, which is peanuts relative to the size of modern hard drives, but it's space that I want back!
The HTML5 revolution has provided us some awesome JavaScript and HTML APIs. Some are APIs we knew we've needed for years, others are cutting edge mobile and desktop helpers. Regardless of API strength or purpose, anything to help us better do our job is a...
CSS animations are right up there with sliced bread. CSS animations are efficient because they can be hardware accelerated, they require no JavaScript overhead, and they are composed of very little CSS code. Quite often we add CSS transforms to elements via CSS during...
The first thing that hits you when you visit Pinterest is "Whoa, the columns are the same width and the photos are cut to fit just the way they should." Basic web users probably think nothing of it but as a developer, I can appreciate the...
I often incorporate tools into my customers' websites that allow them to have some control over the content on their website. When doing so, I offer some tips to my clients to help them keep their website in good shape. One of the tips...
Just dropping a huge thank you for sharing this!
another thank you.. just saved ~2gb.
==> This operation has freed approximately 1.9GB of disk space.
df -==> This operation has freed approximately 562.3MB of disk space.
I got about 32.2GB back on my laptop, which out of a 250GB drive is a chunk of space worth having. That also might explain why my Time Machine backups were always much bigger than I was expecting. Thanks for the tip. One question: I didn’t include the “-s” parameter – what does that do?
mauvedeity : scrub the cache, I guess