Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2005 11:30:27 -0600
From:      Vulpes Velox <v.velox@vvelox.net>
To:        Erik Norgaard <norgaard@locolomo.org>
Cc:        FreeBSD Questions <FreeBSD-Questions@FreeBSD.ORG>
Subject:   Re:
Message-ID:  <20050114113027.0feb65f5@vixen42.local.lan>
In-Reply-To: <41E7B573.6020202@locolomo.org>
References:  <20050114115346.19233.qmail@gawab.com> <41E7B573.6020202@locolomo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 Jan 2005 13:05:07 +0100
Erik Norgaard <norgaard@locolomo.org> wrote:

> 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".

A tool you may find handy is portupgrade. It will take care of a nice
amount of stuff automatically.



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