Debian APT shortcuts

On my Debian GNU/Linux systems I’ve defined system wide shell aliases to ease the use of APT commands. Here they are:

# apt-cache
alias asearch="apt-cache search"
alias ashow="apt-cache show"
alias apolicy="apt-cache policy"
alias adepends="apt-cache depends"

# apt-get
alias ainstall="apt-get install"
alias aupdate="apt-get update"
alias aupgrade="apt-get upgrade"

# apt-get remove
alias aremove="apt-get remove"
alias apurge="apt-get remove --purge"
alias aclean="apt-get clean"

I put these lines in the new file that I saved as /etc/profile.d/aliases.apt , so the aliases are then available for every user logged on the system. The aliases are rather self-explanatory:

* To update APT packages db, I now type aupdate,
* to search a Debian package, now I just have to type asearch whatever
* to install a package, I type ainstall pkgname

0 Response to “Debian APT shortcuts”


  • No Comments

Leave a Reply




Close
Powered by ShareThis