Команды для apt

This commit is contained in:
Andrei Astafev 2021-07-22 09:19:16 +03:00
parent 2e052d7d19
commit d868d4f8ae

View File

@ -13,7 +13,8 @@ alias aptp='sudo apt-get purge'
alias aptr='sudo apt-get remove' alias aptr='sudo apt-get remove'
alias aptc='sudo apt-get --purge autoremove' alias aptc='sudo apt-get --purge autoremove'
alias aptk='sudo apt-key add' alias aptk='sudo apt-key add'
apts() { alias apts='apt-cache show'
aptf() {
[ -z $1 ] && return 1 [ -z $1 ] && return 1
if [ -z $2 ]; then if [ -z $2 ]; then
apt-cache search $1 apt-cache search $1
@ -21,6 +22,11 @@ apts() {
apt-cache search $1 | grep $2 apt-cache search $1 | grep $2
fi fi
} }
aptl() {
[ -z $1 ] && return 1
sudo apt-get purge linux-modules-extra-"$1".* linux-modules-"$1".* linux-tools-"$1".* \
linux-image-"$1".* linux-image-unsigned-"$1".* linux-headers-"$1".*
}
# VIM # VIM
alias gvim='gvim --remote-silent' alias gvim='gvim --remote-silent'