Up.
This commit is contained in:
3
home/dot_zim/modules/debian/README.md
Normal file
3
home/dot_zim/modules/debian/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
debian
|
||||
=======
|
||||
|
||||
1
home/dot_zim/modules/debian/functions/apt-key-add
Normal file
1
home/dot_zim/modules/debian/functions/apt-key-add
Normal file
@@ -0,0 +1 @@
|
||||
wget -q -O - "${1}" | sudo apt-key add -
|
||||
7
home/dot_zim/modules/debian/functions/apt-list-packages
Normal file
7
home/dot_zim/modules/debian/functions/apt-list-packages
Normal file
@@ -0,0 +1,7 @@
|
||||
# List packages by size
|
||||
function apt-list-packages() {
|
||||
dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n' | \
|
||||
grep -v deinstall | \
|
||||
sort -n | \
|
||||
awk '{print $1" "$2}'
|
||||
}
|
||||
45
home/dot_zim/modules/debian/init.zsh
Normal file
45
home/dot_zim/modules/debian/init.zsh
Normal file
@@ -0,0 +1,45 @@
|
||||
#
|
||||
# Debian Shortcuts and Aliases
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# Common Operations
|
||||
#
|
||||
|
||||
alias acs='apt-cache search' # search through apt software package
|
||||
# cache
|
||||
alias aps='apt search' # search through packages list
|
||||
alias acS='apt-cache show' # show info about a package
|
||||
alias afs='apt-file search' # search file in packages
|
||||
alias ags='apt-get source' # fetch source packages through apt-get
|
||||
alias acp='apt-cache policy' # displays priority of package sources
|
||||
alias alp='apt-list-packages' # list packages by size
|
||||
alias aka='apt-key-add' # retrieve and add key to keyring
|
||||
alias alu="apt list --upgradable" # list upgradable packages
|
||||
|
||||
|
||||
#
|
||||
# Superuser apt-get Operations
|
||||
#
|
||||
|
||||
alias aga='sudo apt-get autoremove' # autoremove unecessary packages
|
||||
alias agu='sudo apt-get update' # update packages database
|
||||
alias agU='sudo apt-get upgrade' # upgrade packages
|
||||
alias agd='sudo apt-get dist-upgrade' # upgrade dist
|
||||
alias agc='sudo apt-get clean' # clears out the local repository of
|
||||
# retrieved package files except lock
|
||||
# files
|
||||
alias agi='sudo apt-get install' # install package
|
||||
alias agp='sudo apt-get purge' # Removes packages along with
|
||||
# configuration files
|
||||
alias agr='sudo apt-get remove' # Removes packages, keeps the
|
||||
# configuration files
|
||||
alias aguu='agu && agU'
|
||||
|
||||
|
||||
#
|
||||
# Superuser dpkg Operations
|
||||
#
|
||||
|
||||
alias di='sudo dpkg -i' # install local .deb file
|
||||
Reference in New Issue
Block a user