How to remove all old and outdated brew packages on MacOS

https://w‮ttual.ww‬uri.com
How to remove all old and outdated brew packages on MacOS

To remove all old and outdated packages in Homebrew, a package manager for MacOS, you can use the brew cleanup command.

To remove all old and outdated packages, open a terminal and enter the following command:

brew cleanup

This will remove all old and outdated packages that are no longer needed.

You can also use the --prune=X option to remove all packages that have not been updated in the last X days:

brew cleanup --prune=X

Replace X with the number of days. For example, to remove all packages that have not been updated in the last 90 days, you can use the following command:

brew cleanup --prune=90
Created Time:2017-10-28 21:39:06  Author:lautturi