The package manager needs more RAM than the average other package manager because it is doing a lot more behind the back.