From owner-freebsd-questions@FreeBSD.ORG Sat Nov 28 16:38:23 2009 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 67251106566B for ; Sat, 28 Nov 2009 16:38:23 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2737F8FC13 for ; Sat, 28 Nov 2009 16:38:23 +0000 (UTC) Received: from r55.edvax.de (port-92-195-228-22.dynamic.qsc.de [92.195.228.22]) by mx02.qsc.de (Postfix) with ESMTP id A6DEA1F1FA; Sat, 28 Nov 2009 17:38:21 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id nASGcKiJ002725; Sat, 28 Nov 2009 17:38:21 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 28 Nov 2009 17:38:20 +0100 From: Polytropon To: Rem P Roberti Message-Id: <20091128173820.41ba8322.freebsd@edvax.de> In-Reply-To: <20091128161658.GA51664@bsd.remdog.net> References: <20091128161658.GA51664@bsd.remdog.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: Removing installed packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2009 16:38:23 -0000 On Sat, 28 Nov 2009 08:16:58 -0800, Rem P Roberti wrote: > In trying to upgrade CUPS on a new 7.2 installation (CUPS was installed > via sysinstall) the upgrade choked, and then I saw in UPDATING that > print/cups has been split into multiple ports, and that in order to > upgrade you must first remove the installed version. What is the best > way to do that? Should I be using pkg_delete and, if so, with what > switch or switches? I think # pkg_delete -x cups should be sufficient. It will remove all the packages from your system that contain "cups" in their name. If you're a bit unsure for such a "drastic" method, remove the CUPS packages separately, e. g. # pkg_delete -f cups-base-1.2.3.4 # pkg_delete -f cups-foobar-5.6.7.8 ... Using -f makes sure that you don't have to pay attention to the order of removal, or packages that depend on CUPS. Another way is to enter the CUPS port directory and issue the command # make deinstall Then you can continue in that port directory with # make reinstall if you've already updated your ports source tree. The new version of CUPS will then be installed that way. Of course, there's nothing wrong with using the precompiled packages that you can add with the pkg_add -r mechanism. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...