Команды для apt
This commit is contained in:
parent
2e052d7d19
commit
d868d4f8ae
@ -13,7 +13,8 @@ alias aptp='sudo apt-get purge'
|
||||
alias aptr='sudo apt-get remove'
|
||||
alias aptc='sudo apt-get --purge autoremove'
|
||||
alias aptk='sudo apt-key add'
|
||||
apts() {
|
||||
alias apts='apt-cache show'
|
||||
aptf() {
|
||||
[ -z $1 ] && return 1
|
||||
if [ -z $2 ]; then
|
||||
apt-cache search $1
|
||||
@ -21,6 +22,11 @@ apts() {
|
||||
apt-cache search $1 | grep $2
|
||||
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
|
||||
alias gvim='gvim --remote-silent'
|
||||
|
Loading…
Reference in New Issue
Block a user