added apt-get autoremove

This commit is contained in:
Tobias Schmidl 2018-02-14 10:45:09 +01:00
parent d45900088c
commit 973212d561

View file

@ -16,9 +16,11 @@ then
all_dkms_packages="`apt-cache rdepends --installed dkms | sed -rn 's/^ +([^ ]+)$/\1/p' | sort -iu`"
if [ $use_sudo -eq 1 ];
then
alias aar='sudo apt-get --purge autoremove'
alias adbu='sudo $apt_pref -t ${current_dist}-backports $apt_upgr'
alias drd='[ -n "$all_dkms_packages" ] && sudo dpkg-reconfigure $all_dkms_packages'
else
alias aar='su -lc "apt-get --purge autoremove"'
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'
fi