strip unnecessary parts in update packages