Back to Ohmyzsh

Ubuntu plugin

plugins/ubuntu/README.md

latest6.4 KB
Original Source

Ubuntu plugin

This plugin adds completions and aliases for Ubuntu.

To use it, add ubuntu to the plugins array in your zshrc file:

zsh
plugins=(... ubuntu)

Aliases

Commands that use $APT will use apt-fast if installed, or apt if installed, or defer to apt-get otherwise.

AliasCommandDescription
agesudo $APTRun apt-get with sudo
acsapt-cache searchSearch the apt-cache with the specified criteria
acspapt-cache showpkgShows information about the listed packages
acpapt-cache policyDisplay the package source priorities
afsapt-file search --regexpPerform a regular expression apt-file search
afusudo apt-file updateGenerates or updates the apt-file package database
agasudo $APT autocleanClears out the local repository of retrieved package files that can no longer be downloaded
agbsudo $APT build-dep <source_pkg>Installs/Removes packages to satisfy the dependencies of a specified build pkg
agcsudo $APT cleanClears out the local repository of retrieved package files leaving everything from the lock files
agdsudo $APT dselect-upgradeFollows dselect choices for package installation
agisudo $APT install <pkg>Install the specified package
agliapt list --installedList the installed packages
agluapt list --upgradableList available updates only
agpsudo $APT purge <pkg>Remove a package including any configuration files
agrsudo $APT remove <pkg>Remove a package
ags$APT source <pkg>Fetch the source for the specified package
agusudo $APT updateUpdate package list
agudsudo $APT update && sudo $APT dist-upgradeUpdate packages list and perform a distribution upgrade
agugsudo $APT upgradeUpgrade available packages
agarsudo $APT autoremoveRemove automatically installed packages no longer needed
aguusudo $APT update && sudo $APT upgradeUpdate packages list and upgrade available packages
allpkgsdpkg --get-selections | grep -v deinstallPrint all installed packages
kcleansudo aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))Remove ALL kernel images and headers EXCEPT the one in use
mydebtime dpkg-buildpackage -rfakeroot -us -ucCreate a basic .deb package
ppapsudo ppa-purge <ppa>Remove the specified PPA

Functions

FunctionUsageDescription
aaraar ppa:xxxxxx/xxxxxx [packagename]apt-add-repository with automatic install/upgrade of the desired package
apt-historyapt-history <action>Prints the Apt history of the specified action
apt-list-packagesapt-list-packagesList packages by size
kerndebkerndebKernel-package building shortcut

Authors