extract all packages into a list