vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

remove_snap.sh (352B)


      1 #!/usr/bin/env sh
      2 pushd /etc/apt/preferences.d/
      3 cat > nosnap.pref <<EOF
      4 # To prevent repository packages from triggering the installation of snap,
      5 # this file forbids snapd from being installed by APT.
      6 
      7 Package: snapd
      8 Pin: release a=*
      9 Pin-Priority: -10
     10 EOF
     11 popd
     12 snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}')
     13 apt-get purge -y snapd