Enhance package install/remove procedure

Support for ordering of package installation and comments and whitespace
in {install,remove}-list