purge old kernels when upgrade
This commit is contained in:
parent
231ea08c28
commit
5d978d2007
1 changed files with 2 additions and 1 deletions
3
.bashrc
3
.bashrc
|
|
@ -286,7 +286,8 @@ calc() {
|
||||||
# Configuration #
|
# Configuration #
|
||||||
#################
|
#################
|
||||||
|
|
||||||
alias upgrade="sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y && sudo apt-get clean"
|
# Note: purge-old-kernels is in the bikeshed package
|
||||||
|
alias upgrade="sudo apt update && sudo apt dist-upgrade -y && sudo purge-old-kernels --keep 2 && sudo apt --purge autoremove -y && sudo apt autoclean -y && sudo apt clean"
|
||||||
|
|
||||||
# alias I want to learn
|
# alias I want to learn
|
||||||
function h()
|
function h()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue