Hi all,

today I got some time to have a look for a quick and dirty get rid of kvim:

- First download an old kvim, vim and vim-common package with same version.
- Then unpack the kvim deb with "ar x ../kvim_6.3-046+0sarge1_i386.deb"
- Then untar the control file with "tar xzvf control.tar.gz"
- Then edit the postrm file and delete the folowing lines:

remove_diversion() {
  dpkg-divert --package $pkg --remove --rename \
              --divert /usr/bin/vim.org /usr/bin/vim
}

if [ "$1" = "failed-upgrade" ] && $(dpkg --compare-versions $2 lt 6.0) ; then
  remove_diversion
elif [ "$1" = "remove" ] ; then
  remove_diversion
fi

- Then create a new control.tar.gz with "tar czvf control.tar.gz conffiles
control md5sums postinst postrm preinst"
- Then update the deb file with the new control file with "ar r
../kvim_6.3-046+0sarge1_i386.deb control.tar.gz"
- Then install all three files with "dpkg -i" and after that do a "apt-get
remove --purge kvim"
- Now you are able to update vim to vim_1%3a6.3-068+4_i386.deb


Regards,
Joris


-- 
Joris Mocka
[EMAIL PROTECTED]
Duesseldorfer Linux User Group - http://www.dlug.de/
GnuPG Fingerprint: D629 E767 F6AB D42E 4371  04B4 1EC5 5950 0B75 D3A4
Treffen sich 2 Männer in der 1. Klasse der Bahn. Sagt der eine: "Ich bin
Staubsaugervertreter, ich verkaufe Staubsauger", sagt der andere: "Ah
interessant! Ich bin Volksvertreter, ..."


Reply via email to