JuliaPackaging / Homebrew.jl

OSX Binary dependency provider for Julia
Other
27 stars 32 forks source link

brew cleanup? #173

Closed BoundaryValueProblems closed 7 years ago

BoundaryValueProblems commented 7 years ago

@staticfloat: how can I run brew cleanup to remove unnecessary folders under ~/.julia/v0.5/Homebrew/deps/? On my system-wide homebrew, I regularly run brew cleanup. But I'm not sure whether I can do the same for the homebrew folders within Homebrew.jl. Thanks for your help! BVPs

ararslan commented 7 years ago

FYI you'll have to remove the backticks in order to ping @staticfloat.

staticfloat commented 7 years ago

Great question Prof. Saito. I have just added a Homebrew.cleanup() command, it will appear in the latest version of Homebrew after the next release. If you want to run it immediately, you can run Pkg.checkout("Homebrew") in order to pull down the latest (unreleased) version of the Homebrew package. You can then run using Homebrew and Homebrew.cleanup() to cleanup your installed formulae and downloaded bottles. Note that Homebrew.jl already usually cleans out older versions of formulae, so this isn't usually necessary, although it will cleanup downloaded bottles, which can save you some space.

If you do download the latest version of Homebrew and want to switch back to the "stable" versions, use Pkg.free("Homebrew"), and you'll go back to the latest release version of Homebrew.

BoundaryValueProblems commented 7 years ago

Thanks a lot! Yes, this functionality, Homebrew.cleanup() would be quite nice especially for people who maintain two versions of Homebrew: (1) the system-wide regular Homebrew and (2) the Homebrew system under Homebrew.jl.

staticfloat commented 7 years ago

I am closing this as Homebrew.cleanup() is now included in the latest stable version of Homebrew.

BoundaryValueProblems commented 7 years ago

@staticfloat, thank you very much! It works great!