Preserve settings and repositories
Packages have dependencies
Cache repositories
Disable untested code