Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2010 16:28:51 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Giorgos Tsiapaliokas <terietor@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: change kde4 (pkg) to kde4 (ports)
Message-ID:  <20100618162851.815f24da.freebsd@edvax.de>
In-Reply-To: <AANLkTikqhvfHH8AnWhhiQP2MyAkb2qrSAKikIU_lEa0e@mail.gmail.com>
References:  <AANLkTikqhvfHH8AnWhhiQP2MyAkb2qrSAKikIU_lEa0e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 Jun 2010 14:21:30 +0300, Giorgos Tsiapaliokas <terietor@gmail.com> 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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100618162851.815f24da.freebsd>