3 This plugin adds completions and aliases for [Ubuntu](https://www.ubuntu.com/).
5 To use it, add `ubuntu` to the plugins array in your zshrc file:
13 Commands that use `$APT` will use `apt` if installed or defer to `apt-get` otherwise.
15 | Alias | Command | Description |
16 |---------|--------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
17 | age | `sudo $APT` | Run apt-get with sudo |
18 | acs | `apt-cache search` | Search the apt-cache with the specified criteria |
19 | acsp | `apt-cache showpkg` | Shows information about the listed packages |
20 | acp | `apt-cache policy` | Display the package source priorities |
21 | afs | `apt-file search --regexp` | Perform a regular expression apt-file search |
22 | afu | `sudo apt-file update` | Generates or updates the apt-file package database |
23 | aga | `sudo $APT autoclean` | Clears out the local repository of retrieved package files that can no longer be downloaded |
24 | agb | `sudo $APT build-dep <source_pkg>` | Installs/Removes packages to satisfy the dependencies of a specified build pkg |
25 | agc | `sudo $APT clean` | Clears out the local repository of retrieved package files leaving everything from the lock files |
26 | agd | `sudo $APT dselect-upgrade` | Follows dselect choices for package installation |
27 | agi | `sudo $APT install <pkg>` | Install the specified package |
28 | agli | `apt list --installed` | List the installed packages |
29 | aglu | `sudo apt-get -u upgrade --assume-no` | Run an apt-get upgrade assuming no to all prompts |
30 | agp | `sudo $APT purge <pkg>` | Remove a package including any configuration files |
31 | agr | `sudo $APT remove <pkg>` | Remove a package |
32 | ags | `$APT source <pkg>` | Fetch the source for the specified package |
33 | agu | `sudo $APT update` | Update package list |
34 | agud | `sudo $APT update && sudo $APT dist-upgrade` | Update packages list and perform a distribution upgrade |
35 | agug | `sudo $APT upgrade` | Upgrade available packages |
36 | agar | `sudo $APT autoremove` | Remove automatically installed packages no longer needed |
37 | aguu | `sudo $APT update && sudo $APT upgrade` | Update packages list and upgrade available packages |
38 | allpkgs | `dpkg --get-selections \| grep -v deinstall` | Print all installed packages |
39 | kclean | `sudo aptitude remove -P ?and(~i~nlinux-(ima\|hea) ?not(~n$(uname -r)))` |Remove ALL kernel images and headers EXCEPT the one in use |
40 | mydeb | `time dpkg-buildpackage -rfakeroot -us -uc` | Create a basic .deb package |
41 | ppap | `sudo ppa-purge <ppa>` | Remove the specified PPA |
46 | Function | Usage |Description |
47 |-------------------|---------------------------------------|--------------------------------------------------------------------------|
48 | aar | `aar ppa:xxxxxx/xxxxxx [packagename]` | apt-add-repository with automatic install/upgrade of the desired package |
49 | apt-history | `apt-history <action>` | Prints the Apt history of the specified action |
50 | apt-list-packages | `apt-list-packages` | List packages by size |
51 | kerndeb | `kerndeb` | Kernel-package building shortcut |
55 - [@AlexBio](https://github.com/AlexBio)
56 - [@dbb](https://github.com/dbb)
57 - [@Mappleconfusers](https://github.com/Mappleconfusers)
58 - [@trinaldi](https://github.com/trinaldi)
59 - [Nicolas Jonas](https://nextgenthemes.com)
60 - [@loctauxphilippe](https://github.com/loctauxphilippe)
61 - [@HaraldNordgren](https://github.com/HaraldNordgren)