Advertisement
j0h

snapSux

j0h
Jun 12th, 2023
1,279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.84 KB | None | 0 0
  1. #!/bin/bash
  2. #snapSucks
  3.  
  4. sudo systemctl disable snapd.service
  5. sudo systemctl disable snapd.socket
  6. sudo systemctl disable snapd.seeded.service
  7. sudo systemctl disable snapd.snap-repair.timer
  8.  
  9. for i in `snap list`
  10. do
  11. sudo snap remove $i
  12. done
  13.  
  14. sudo rm -rf /var/cache/snapd/
  15.  
  16. sudo apt autoremove snapd
  17.  
  18. rm -rf ~/snap
  19.  
  20. #PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/$USER/.local/bin:/home/$USER/bin:/opt"
  21. sudo echo -e  "PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/$USER/.local/bin:/home/$USER/bin:/opt\"" > /etc/environment
  22.  
  23. sudo echo -e "Package: firefox*
  24. Pin: release o=Ubuntu*
  25. Pin-Priority: -1" > /etc/apt/preferences.d/firefox-no-snap
  26.  
  27. sudo add-apt-repository ppa:mozillateam/ppa
  28. sudo apt update
  29. sudo apt install firefox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement