TIP: Use aptsh to quickly access APT

Forum rules
Share your brain ;)
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

TIP: Use aptsh to quickly access APT

Unread post by machinebacon » Wed Oct 09, 2013 6:04 am

Of course there are nice aliases, in zsh even with tab-completion, that help you to install, remove/purge, or search for packages. However, if you plan to do an apt-get orgy, I recommend the use af aptsh, which is an APT shell. Easily installed with

Code: Select all

sudo apt-get install aptsh
on all Debian-based distros, you can then run aptsh as root:

Code: Select all

sudo aptsh
From here on, you can use following commands:
ls <term> - search for a package via package name or description
rls <term> - search for a package via package name or description using regex
listfiles <package> - list files inside of a package, tab-completion OK
toupgrade - shows packages that can be upgraded
orphans - shows orphaned libraries (careful with this! better use deborphan/orphaner)
orphans-all - shows orphaned packages (careful with this!)
whatis <package> - shows the description of a file
and of course all other APT typical functions like install, update, dist-upgrade, and so forth.

Give it a try, and be sure to check the manual page (in aptsh enter 'help' and 'help-howto') for more info.
..gnutella..

Post Reply