Use a string to distinguish yum and apt.
Support deb installation and upgrade.
Support adding apt repository.