Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jan 2004 23:42:34 -0500
From:      parv <parv@pair.com>
To:        Mauricio <supremedalek@hotpop.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pkg_add and me
Message-ID:  <20040103044234.GB397@moo.holy.cow>
In-Reply-To: <a06002001bc1abef18f33@[10.0.0.10]>
References:  <20031230034953.36866d74@it.buh.cameradicommercio.ro> <200312300225.hBU2PQsi030000@smtp.doruk.net.tr> <20031230043149.73c3dddd@it.buh.cameradicommercio.ro> <3FF15920.4070201@circlesquared.com> <20031231004933.00b76790@it.buh.cameradicommercio.ro> <3FF31FCA.4040805@circlesquared.com> <a06002001bc1abef18f33@[10.0.0.10]>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <a06002001bc1abef18f33@[10.0.0.10]>,
wrote Mauricio thusly...
>
> daffy# pkg_add libiconv-1.9.1_3.tgz
> pkg_add: package 'libiconv-1.9.1_3' or its older version already
> installed
> daffy#
> 
> Ok then, I force it to be installed (-f option).  All I get in the end
> is *two* entries of libiconv according to pkg_info:
> 
> daffy# pkg_info
> [...]
> libiconv-1.8_2      A character set conversion library
> libiconv-1.9.1_3    A character set conversion library
> 
> Why can't it put the latest version in place of the older one?

Then it would be too easy to keep things simple...


> I even tried to uninstall the old one first:
> 
> daffy# pkg_delete libiconv-1.8_2
> pkg_delete: package 'libiconv-1.8_2' is required by these other packages
> and may not be deinstalled:
> gettext-0.11.5_1

Ah, you forgot to force the deletion unlike addition.

Try this...

 #  Delete both versions.  If doesn't work delete one by one; it has
 #  been a while since i had to deinstall two versions.
 pkg_delete -d -f libiconv

 #  Should work w/ the force.  Force  may be needed if newer versions of
 #  dependent software are missing, but older versions would still work
 #  w/ the port being installed.
 pkg_add -f <path to libiconv>

 #  Readjust the dependencies (provided by portupgrade port)
 pkgdb -F


  - Parv

-- 



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