This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/dpkg/init.zsh

32 lines
1.6 KiB
Bash
Raw Normal View History

2012-01-31 23:37:51 -05:00
#
# Defines dpkg aliases.
#
# Authors:
# Daniel Bolton <dbb@9y.com>
# Benjamin Boudreau <boudreau.benjamin@gmail.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
2011-08-30 23:16:15 -04:00
# Aliases
2012-06-02 17:17:12 -04:00
alias as="aptitude -F \"* %p -> %d \n(%v/%V)\" --no-gui --disable-columns search" # Searches for a package.
alias ad="sudo apt-get update" # Updates packages lists.
alias au="sudo apt-get update && sudo apt-get dselect-upgrade" # Upgrades packages.
alias ai="sudo apt-get install" # Installs package.
alias ar="sudo apt-get remove --purge && sudo apt-get autoremove --purge" # Removes package.
alias ap="apt-cache policy" # Prints pinning levels.
alias av="apt-cache show" # Shows package info.
alias acs="apt-cache search" # Searches for a package.
alias ac="sudo apt-get clean && sudo apt-get autoclean" # Cleans cache.
alias afs='apt-file search --regexp' # Finds a file's packake.
2011-08-30 23:16:15 -04:00
2012-06-02 17:17:12 -04:00
# Installs all .deb files in the current directory.
# WARNING: You will need to put the glob in single quotes if you use GLOB_SUBST.
2011-08-30 23:16:15 -04:00
alias debi='su -c "dpkg -i ./*.deb"'
2012-06-02 17:17:12 -04:00
# Creates a basic .deb package.
2011-08-30 23:16:15 -04:00
alias debc='time dpkg-buildpackage -rfakeroot -us -uc'
2012-06-02 17:17:12 -04:00
# Removes ALL kernel images and headers EXCEPT the one in use.
2011-08-30 23:16:15 -04:00
alias kclean='su -c '\''aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n`uname -r`))'\'' root'