From owner-freebsd-questions@FreeBSD.ORG Sat Oct 29 16:17:50 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA7CE1065798 for ; Sat, 29 Oct 2011 16:17:50 +0000 (UTC) (envelope-from huubvanniekerk@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 793EE8FC0C for ; Sat, 29 Oct 2011 16:17:50 +0000 (UTC) Received: by ggnq2 with SMTP id q2so6078036ggn.13 for ; Sat, 29 Oct 2011 09:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ba+goMpWDijMjNSu4dnLgbsnxSsjIkLYye2LG7yDhU4=; b=if22I7mJqrMn1d8SmUQBThJPjOrsgid33b0ecfGZE69DU3sy/4hQ2Aqe4C3zqXuJHo B+ohH2+tsgnopDgU9w0OB/GqYVUxZKzXk4yZnvUJAhmDmpiySqSSjf6zsF2Td3+ALrdA rdrQtF71c9XFCKx+W7pKdwtg2Go+6w7Ub9ocQ= MIME-Version: 1.0 Received: by 10.236.123.73 with SMTP id u49mr9267716yhh.88.1319903608895; Sat, 29 Oct 2011 08:53:28 -0700 (PDT) Received: by 10.236.202.35 with HTTP; Sat, 29 Oct 2011 08:53:28 -0700 (PDT) In-Reply-To: <201110291401.08722.jmc-freebsd2@milibyte.co.uk> References: <201110291401.08722.jmc-freebsd2@milibyte.co.uk> Date: Sat, 29 Oct 2011 17:53:28 +0200 Message-ID: From: Huub van Niekerk To: Mike Clarke Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: update packages by pkg_add X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 16:17:50 -0000 On Sat, Oct 29, 2011 at 3:01 PM, Mike Clarke wrote: > On Saturday 29 October 2011, hvn wrote: > > > Using version 8.2, can somebody tell me how I can upgrade packages > > that I installed using pkg_add? I'm trying to install more packages > > but get messages that there are package-conflicts because of older > > installed version. > > pkg_delete -f name-of-package > pkg_add name-of-package-file > > The pkg_delete command needs the full name of the package including the > version number at the end. Since you're going to immediately re-install > the package you don't need to worry about any warning messages saying > that the package is needed by other packages. > > The above pkg_add command will install a package from a file that you've > already downloaded. If you don't have the package file then you can > fetch and install the package from an FTP site with the command: > > pkg_add -r name-of-package > > -- > Mike Clarke > Thank you for your answer. But how about if the package-to-be-replaced is a dependency? Just remember the dependency and do the same ?