- move more common code from apt-get & apt-shell to cmdline