From owner-freebsd-questions Mon Sep 17 6:51:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.ms-agentur.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 5234437B406 for ; Mon, 17 Sep 2001 06:51:43 -0700 (PDT) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.ms-agentur.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id QAA05993; Mon, 17 Sep 2001 16:01:01 +0200 Message-ID: <3BA5FFE6.90207@i-clue.de> Date: Mon, 17 Sep 2001 15:51:34 +0200 From: Christoph Sold User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:0.9.3+) Gecko/20010905 X-Accept-Language: de, en MIME-Version: 1.0 To: Jeremy Cc: FreeBSD Questions Subject: Re: Vim is both installed and uninstalled? (trying again) References: <87g09lpar0.fsf@yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 to delete that version, including all the files already installed, or # rm -rf /var/db/pkg/vim- 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