From owner-freebsd-questions@FreeBSD.ORG Fri Jun 18 14:28:59 2010 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 2DA621065677 for ; Fri, 18 Jun 2010 14:28:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id E1C038FC16 for ; Fri, 18 Jun 2010 14:28:58 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx01.qsc.de (Postfix) with ESMTP id 457913D55B; Fri, 18 Jun 2010 16:28:53 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o5IESq2u005739; Fri, 18 Jun 2010 16:28:52 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 18 Jun 2010 16:28:51 +0200 From: Polytropon To: Giorgos Tsiapaliokas Message-Id: <20100618162851.815f24da.freebsd@edvax.de> In-Reply-To: References: 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-questions@freebsd.org Subject: Re: change kde4 (pkg) to kde4 (ports) 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: Fri, 18 Jun 2010 14:28:59 -0000 On Fri, 18 Jun 2010 14:21:30 +0300, Giorgos Tsiapaliokas wrote: > i know that i can reinstall the packages and install them again as ports but > i don't want to do that,i want to convert the package installiation into > ports installiation. Okay, I think I basically understand. :-) First of all, I think you mean to DE-install the installed packages, not RE-install them. In oder to install KDE from ports, you need to removed the currently installed software (no matter if it has initially been installed by packages or ports). The de-installation of installed software can be done with pkg_delete, or with "make deinstall" from the ports infra- structure. In order to do the last thing, you would do something like this: # cd /usr/ports/x1/kde4 # make # make deinstall # make reinstall This procedure would first compile all the stuff, then remove the existing installation, and finally installing the just compiled new software. See if you need "make config-recursive", too; see "man 7 ports" for details. There's one thing I'm not sure about, maybe someone else could explain this: KDE4 as in /usr/ports/x1/kde4 is a so called meta-port. If someone does "make deinstall" for a meta-port, will it run "make deinstall" on all its parts (which are ports)? If you're using a port & package management tool, such as portmaster, portupgrade or portmanager, I think the solution is much easier: # portupgrade -Rf kde4 See "man portupgrade" for details. The portupgrade program acts as a "front-end" to the ports infrastructure, and so controls the "make", "make install", "make clean" and so on steps. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...