optimize package install