Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- apt-get update
- apt-get dist-upgrade -y
- apt-get upgrade -y
- apt-get install -f
- apt-get autoclean
- apt-get autoremove -y
- apt-get clean
- dpkg --purge `COLUMNS=300 dpkg -l "*" | egrep "^rc" | cut -d" " -f3`
- echo -n "# Removendo núcleos antigos..."
- dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get --dry-run remove
- dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs
- sudo apt-get -y remove
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement