Update mainpackages. Use curl instead of wget