From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 12:05:21 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0187416A4CE for ; Fri, 14 Jan 2005 12:05:21 +0000 (GMT) Received: from top.daemonsecurity.com (FW-182-254.go.retevision.es [62.174.254.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E814943D39 for ; Fri, 14 Jan 2005 12:05:19 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [IPv6???1] (localhost.daemonsecurity.com [127.0.0.1]) by top.daemonsecurity.com (Postfix) with ESMTP id D2EBBFD022; Fri, 14 Jan 2005 13:05:17 +0100 (CET) Message-ID: <41E7B573.6020202@locolomo.org> Date: Fri, 14 Jan 2005 13:05:07 +0100 From: Erik Norgaard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041114 X-Accept-Language: en, en-us, da, it, es MIME-Version: 1.0 To: Emon References: <20050114115346.19233.qmail@gawab.com> In-Reply-To: <20050114115346.19233.qmail@gawab.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Questions Subject: Re: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 12:05:21 -0000 Emon wrote: > But now some of the packages were complaining that an older > version is installed & I had no idea how to upgrade these > packages. > > So in my blind rage I did "pkg_add -vf" on all packages > including mc. > > Now mc works but I cannot uninstall it or any of the packages. I > will show you an example. > > > # pkg_add mc-4.6.0_13.tgz > pkg_add: package 'mc-4.6.0_13' or its older version already > installed > # pkg_delete mc-4.6.0_13.tgz > pkg_delete: no such package 'mc-4.6.0_13.tgz' installed > # > > Now how on earth is that possible?? First it says "older version > already installed" & than it says "no such package > 'mc-4.6.0_13.tgz' installed". Yeah, maybe it is not completely clear. When you use pkg_add you give it a tgz file containing the package. When you want to delete it, you must give the package name, usually the same but without the tgz extension. Some tricks: It is often helpfull to search for what version of a package is installed when you get that kind of error: # pkg_info -x mc the -x is regular expresion, so all packages containing mc will match, in this case mc-4 is probably better. You can also use pkg_delete with -x option, but be carefull! When using packages, make sure you download packages for the same release, this way you should not get such errors as "older version installed". Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2