From owner-freebsd-questions Thu Sep 7 8:58:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay1.inwind.it (relay1.inwind.it [212.141.53.67]) by hub.freebsd.org (Postfix) with ESMTP id 3A0BE37B423 for ; Thu, 7 Sep 2000 08:58:51 -0700 (PDT) Received: from bartequi.ottodomain.org (212.141.79.168) by relay1.inwind.it (5.1.046) id 39AFDC99000D7E65; Thu, 7 Sep 2000 17:58:32 +0200 From: Salvo Bartolotta Date: Thu, 07 Sep 2000 16:58:38 GMT Message-ID: <20000907.16583800@bartequi.ottodomain.org> Subject: Re: upgrading a program by ports' package To: youlgok@attglobal.net Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <39B7A959.4B4EDEB1@attglobal.net> References: <39B7994A.23D0ED11@attglobal.net> <20000907.14572300@bartequi.ottodomain.org> <39B7A959.4B4EDEB1@attglobal.net> X-Mailer: SuperCalifragilis X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 9/7/00, 3:42:35 PM, youlgok@attglobal.net wrote regarding Re:=20 upgrading a program by ports' package: > Hi, Salvo Bartolotta: > Thanks for your kind reply. I have one question. If I just pkg_add > glib-1.2.8 without deleteing glib-1.2.6, what could be happend? Both > pacakges are installed? > -Paul Hello Paul,=20 Well, normally, a package **overwrites** the other. That's why you=20 first pkg_delete the old one, and then you install the new one. However, there are packages designed to coexist in different versions=20 (cf e.g. different versions of tcl in /usr/ports/lang). If you mess things up (ie overwrite), well, you should use (wait for=20 it) pkg_delete(1) in order to get rid of all the relevant bits (new=20 and old ones ).=20 I have been using almost exclusively the ports system ..., so I=20 haven't actually/effectively run into this type of scenario :-) If you use the ports system, you will follow a slightly different=20 strategy: you first make sure that a new port, say, "foo", builds=20 before pkg_deleting the old one; then you install the new version. HTH, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message