Skip to content

Instantly share code, notes, and snippets.

@aletoropov
Created June 22, 2024 15:10
Show Gist options
  • Save aletoropov/88acabffd9d1d6c2e9037c2cba5f6e91 to your computer and use it in GitHub Desktop.
Save aletoropov/88acabffd9d1d6c2e9037c2cba5f6e91 to your computer and use it in GitHub Desktop.
Обновление и очистка системы (Ubuntu, Linux Mint)
#!/bin/bash
echo "Update & clean system..."
sudo apt-get update
sudo apt-get upgrade
sudo apt autoclean
sudo apt clean
sudo apt autoremove
sudo snap set system refresh.retain=2
dpkg -l | awk '/^rc/ {print $2}' | xargs sudo dpkg --purge
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment