- move common code in apt-cache/shell to cmdline