Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mac-cleanup/mac-cleanup-sh
🗑️ Cleanup script for macOS (DEPRECATED)
https://github.com/mac-cleanup/mac-cleanup-sh
bash cleaning cleanup cleanup-docker-images cleanup-script homebrew mac-cleanup macos osx
Last synced: 1 day ago
JSON representation
🗑️ Cleanup script for macOS (DEPRECATED)
- Host: GitHub
- URL: https://github.com/mac-cleanup/mac-cleanup-sh
- Owner: mac-cleanup
- License: mit
- Created: 2015-04-28T09:39:06.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T08:26:46.000Z (over 1 year ago)
- Last Synced: 2025-01-03T08:08:27.631Z (9 days ago)
- Topics: bash, cleaning, cleanup, cleanup-docker-images, cleanup-script, homebrew, mac-cleanup, macos, osx
- Language: Shell
- Homepage: https://wartner.io
- Size: 169 KB
- Stars: 2,647
- Watchers: 45
- Forks: 246
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-starred-test - mac-cleanup/mac-cleanup-sh - 🗑️ Cleanup script for macOS (DEPRECATED) (Shell)
- jimsghstars - mac-cleanup/mac-cleanup-sh - 🗑️ Cleanup script for macOS (DEPRECATED) (Shell)
README
# mac-cleanup
### A cleanup script for macOS
What does script do?
* Empty the Trash on All Mounted Volumes and the Main HDD
* Clear System Log Files
* Clear Adobe Cache Files
* Cleanup iOS Applications
* Remove iOS Device Backups
* Cleanup Xcode Derived Data and Archives
* Reset iOS simulators
* Cleanup Homebrew Cache
* Cleanup Any Old Versions of Gems
* Cleanup Dangling Docker Images
* Purge Inactive Memory
* Cleanup pip cache
* Cleanup Pyenv-VirtualEnv Cache
* Cleanup npm Cache
* Cleanup Yarn Cache
* Cleanup Docker Images and Stopped Containers
* Cleanup CocoaPods Cache Files
* Cleanup composer cache
* Cleanup Dropbox cache
* Remove PhpStorm logs
* Remove Minecraft logs and cache
* Remove Steam logs and cache
* Remove Lunar Client logs and cache
* Remove Microsoft Teams logs and cache
* Remove Wget logs and hosts
* Removes Cacher logs
* Deletes Android caches
* Clears Gradle caches
* Deletes Kite logs
* Clears Go module cache
* Clears Poetry cache## Install Automatically
### Using homebrew
```bash
brew tap fwartner/tap
brew install fwartner/tap/mac-cleanup
```
Error: SHA256 mismatch
> If you'll see ```Error: SHA256 mismatch``` try this:
> 1. Copy "Actual" hash from error
> 2. Run ```brew edit fwartner/tap/mac-cleanup```
> 3. Press ```I``` and change ```sha256 ""``` with hash from step 1
> 4. Press ```:```, then ```wq``` and ```Enter```
> 5. Re-run installation \
> ```brew install fwartner/tap/mac-cleanup```### Using curl
```bash
curl -fsSL https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh | bash -s install
```### Using wget
```bash
wget https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh -O - | bash -s install
```## Step by Step Install
1. Download: `curl -o cleanup https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/mac-cleanup`
2. Make it executable: `chmod +x cleanup`
3. Move to make it globally usable: `sudo mv cleanup /usr/local/bin/cleanup`### Note:
If installing with curl you need to call `cleanup` instead of `mac-cleanup`.## Update
### Using curl
```bash
curl -fsSL "https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh" | bash -s update
```### Using wget
```bash
wget "https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh" -O - | bash -s update
```## Uninstall
### Using curl
```bash
curl -fsSL "https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh" | bash -s uninstall
```### Using wget
```bash
wget "https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh" -O - | bash -s uninstall
```## Usage Options
Help menu:
```
$ mac-cleanup -hA Mac Cleanup Utility by fwartner
https://github.com/mac-cleanup/mac-cleanup-shUSAGE:
mac-cleanup [FLAGS]FLAGS:
-h, --help Prints help menu
-d, --dry-run Print approx space to be cleaned
-v, --verbose Print script debug info
-u, --update Run brew update
```## Contributors
### Code Contributors
This project exists thanks to all the people who contribute.
If you like what I am doing please consider [sponsor my work](https://github.com/sponsors/fwartner)!