A simpler interface to the Debian APT command-line tools.
A shorter, simpler, and slightly saner interactive interface to the Debian APT command-line tools.
apt may be thought of as a traffic cop that directs commands to the appropriate tool, automatically elevating itself with sudo if need-be. It consolidates all commands from apt-get and apt-cache, and the most common from aptitude, dpkg, dpkg-query, add-apt-repository, and apt-key. It has a much narrower focus than “kitchen-sink” tools such as wajig.
Hopefully this micro-project will make your life a tiny bit easier.
sudo pip install apt-wrapper
or for a possibly more up-to-date version:
sudo pip install https://bitbucket.org/mixmastamyk/apt/get/default.tar.gz
apt # List available commands. apt add universe # Invokes sudo automatically, Password: # when necessary. apt add ppa:who/foo apt update apt search foo apt policy foo apt install foo bar apt purge foo apt instdeb foo.deb apt instdeb http://foo... # new apt who-owns `which tr` coreutils: /usr/bin/tr
apt can also handle shortened commands. Add letters until it can be uniquely identified:
sudo apt-get clean
There are a few aliases for common commands as well:
apt in foo # install foo apt rm bar # remove apt se baz # apt-cache search apt ls boo # list installed packages, optionally # with pkg name or glob\* argument syntax. apt dir # dir (e.g. NT or ls -l) installed packages.
Licensed under the GPL, version 3+.