next upgrade from vim-X11-6.1.82-alt7 will remove /usr/bin/vim-X11 vim alternative because of %preun X11 /usr/sbin/update-alternatives --remove vim %_bindir/vim-X11 this should look like (alike vim-enhanced): %preun X11 [ $1 = 0 ] || exit 0 /usr/sbin/update-alternatives --remove vim %_bindir/vim-X11 --- ---