Remove unused packages and set specific version numbers.