automatically replace all packages on mac