Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Feb 2008 03:41:13 -0800
From:      Jeremy Chadwick <koitsu@freebsd.org>
To:        navneet Upadhyay <navneet.upadhyay@gmail.com>
Cc:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, freebsd-ports@freebsd.org
Subject:   Re: Upgrading the Installed package
Message-ID:  <20080206114113.GA95591@eos.sc1.parodius.com>
In-Reply-To: <1563a4fd0802060239t16e539adn784001d75f9d1d02@mail.gmail.com>
References:  <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> <230174700802060040x4f2a0815r1a4bdc7fccf62b5d@mail.gmail.com> <20080206095133.GA94134@eos.sc1.parodius.com> <20080206110215.T2130@wojtek.tensor.gdynia.pl> <1563a4fd0802060239t16e539adn784001d75f9d1d02@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 06, 2008 at 04:09:47PM +0530, navneet Upadhyay wrote:
> Since i am not using the ports , i have complied my product and have created
> package using pkg_create on Machine B(build)and added it using pkg_add on
> machine A .
> so after these steps i have my 1.0 installed on Machine A.
> 
> Now i have made some changes in my product and created a package on Machine
> B using pkg_create, and it is my 1.1 version.
> 
> I want to install this(1.1) version on machine A(which is having 1.0 already
> installed) .
> 
>  one way is to remove 1.0 and install 1.1 on machine A, but i cannot afford
> to do so. IS there any way to upgrade it to 1.1 without uninstalling?
> pkg_update command is not present.
> 
>  I hope i am clear with what i want.

Yes, what you want is clear; I understand you.  And the straightforward
answer to your question is no, it's not possible.

The way you upgrade a port/package on a FreeBSD machine is that you
pkg_delete (deinstall) the old one before pkg_add'ing (installing) the
new one.  All package management systems on every platform I've used
(Solaris, Linux, and FreeBSD) behave this way.

It would help if you could explain why you cannot afford to pkg_delete
your 1.0 package before installing 1.1.

-- 
| Jeremy Chadwick                                    jdc at parodius.com |
| Parodius Networking                           http://www.parodius.com/ |
| UNIX Systems Administrator                      Mountain View, CA, USA |
| Making life hard for others since 1977.                  PGP: 4BD6C0CB |




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