Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Sep 2001 15:51:34 +0200
From:      Christoph Sold <so@i-clue.de>
To:        Jeremy <thinker5555@yahoo.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Vim is both installed and uninstalled? (trying again)
Message-ID:  <3BA5FFE6.90207@i-clue.de>
References:  <87g09lpar0.fsf@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeremy wrote:

>Hi,
>
>I tried to install vim 5.x from the packages directory on the 4.3 FreeBSD cd
>(downloaded from ftp.freebsd.org) and when I originally installed it, my
>computer thrashed around for a bit, and then it ended with something about
>"enable MOTIF="yes" in make.conf" or something similar to that.
>(unfortunately I didn't write it down at the time) I've read that some others
>on the list had a problem with an error about libX[something] not found when
>trying to run vim, so I thought that since I didn't have X installed, I'd
>just pkg_delete it.  When I tried to do that, it told me that vim wasn't
>installed.  When I tried to re-install it so that I could possibly get that
>error message again and try to figure out what was going on, it told me that
>vim was already installed!  So, evidentally, I have vim in a state where it's
>both installed and not installed.
>
>So my question is this.  How do I uninstall a package that comes up both
>installed and not installed?  Is there a certain directory I have to run
>pkg_delete from in order for it to remove it?
>

# pkg_info -aI|grep vim    to learn the exact name of your vim version
# pkg_delete -f <vim-version>    to delete that version, including all 
the files already installed, or

# rm -rf /var/db/pkg/vim-<version>   to delete just the database entry, 
leaving the already installed files intact.

Note: Both of these options may clobber dependent packages.man 
pkg_delete is your friend.

HTH
-Christoph Sold


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BA5FFE6.90207>