added apt-get autoremove
This commit is contained in:
parent
d45900088c
commit
973212d561
1 changed files with 2 additions and 0 deletions
|
@ -16,9 +16,11 @@ then
|
||||||
all_dkms_packages="`apt-cache rdepends --installed dkms | sed -rn 's/^ +([^ ]+)$/\1/p' | sort -iu`"
|
all_dkms_packages="`apt-cache rdepends --installed dkms | sed -rn 's/^ +([^ ]+)$/\1/p' | sort -iu`"
|
||||||
if [ $use_sudo -eq 1 ];
|
if [ $use_sudo -eq 1 ];
|
||||||
then
|
then
|
||||||
|
alias aar='sudo apt-get --purge autoremove'
|
||||||
alias adbu='sudo $apt_pref -t ${current_dist}-backports $apt_upgr'
|
alias adbu='sudo $apt_pref -t ${current_dist}-backports $apt_upgr'
|
||||||
alias drd='[ -n "$all_dkms_packages" ] && sudo dpkg-reconfigure $all_dkms_packages'
|
alias drd='[ -n "$all_dkms_packages" ] && sudo dpkg-reconfigure $all_dkms_packages'
|
||||||
else
|
else
|
||||||
|
alias aar='su -lc "apt-get --purge autoremove"'
|
||||||
alias adbu='su -lc "$apt_pref -t ${current_dist}-backports $apt_upgr" root'
|
alias adbu='su -lc "$apt_pref -t ${current_dist}-backports $apt_upgr" root'
|
||||||
alias drd='[ -n "$all_dkms_packages" ] && su -lc "dpkg-reconfigure $all_dkms_packages" root'
|
alias drd='[ -n "$all_dkms_packages" ] && su -lc "dpkg-reconfigure $all_dkms_packages" root'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue