From owner-freebsd-questions@FreeBSD.ORG Sat Oct 29 13:31:14 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 EE38D106564A for ; Sat, 29 Oct 2011 13:31:14 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from avasout03.plus.net (avasout03.plus.net [84.93.230.244]) by mx1.freebsd.org (Postfix) with ESMTP id 495688FC0A for ; Sat, 29 Oct 2011 13:31:13 +0000 (UTC) Received: from curlew.milibyte.co.uk ([84.92.153.232]) by avasout03.plus.net with smtp id qd191h00J516WCc01d1ArD; Sat, 29 Oct 2011 14:01:10 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=R+SB6KtX c=1 sm=1 a=lfSX4pPLp9EkufIcToJk/A==:17 a=rLpCYgkgFLgA:10 a=EV8K-SF8bmwA:10 a=ZTb9aqGL9YkA:10 a=8nJEP1OIZ-IA:10 a=WGNl82nC2xce5qE9nz0A:9 a=nazYSwmw7h50CUOzw4QA:7 a=wPNLvfGTeEIA:10 a=lfSX4pPLp9EkufIcToJk/A==:117 Received: by curlew.milibyte.co.uk with local (Exim 4.76) (envelope-from ) id 1RK8X6-0001Gv-Rf; Sat, 29 Oct 2011 14:01:09 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Sat, 29 Oct 2011 14:01:08 +0100 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201110291401.08722.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false Cc: hvn 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 13:31:15 -0000 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