Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2007 17:28:01 +0200
From:      Nikola Lecic <nlecic@EUnet.yu>
To:        Peter Jeremy <peterjeremy@optushome.com.au>
Cc:        Jeremie Le Hen <jeremie@le-hen.org>, freebsd-ports@freebsd.org
Subject:   Re: Keeping track of automatically installed dependency-only ports
Message-ID:  <200706151420.l5FEKq6c002859@smtpclu-7.EUnet.yu>
In-Reply-To: <20070615121125.GH1173@turion.vk2pj.dyndns.org>
References:  <20070614070602.GD39533@obiwan.tataz.chchile.org> <200706140714.l5E7EK0U023767@smtpclu-1.eunet.yu> <20070614075418.GA8093@obiwan.tataz.chchile.org> <200706142322.l5ENMbZt009741@smtpclu-6.eunet.yu> <20070615121125.GH1173@turion.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Jun 2007 22:11:25 +1000
Peter Jeremy <peterjeremy@optushome.com.au> wrote:

> [...]
> On 2007-Jun-15 01:22:38 +0200, Nikola Lecic <nlecic@EUnet.yu> wrote:
> > >At the first place, I think such a situation occurs extremly rare.=20
>=20
> For an opposing PoV: I often see ports that looks interesting or look
> like a possible solution to a problem and will install the port to
> have a play.  If it turns out that it's not suitable, I would like to
> be able to easily unistall the port and any dependencies it pulled in
> that I didn't already have.  Currently, this is a fairly delicate
> operation and I usually base it on timestamps within /var/db/pkg.

Hmm, are you sure that's the _opposing_ issue? I think that's exactly
what Jeremie Le Hen asked starting this thread. He wants to do
upward-recursive deinstall without accidentally removing ports he
needs. (And yes, your idea to look at the installation time to
distinguish such ports sounds very fine!)

So, would you find useful the idea of adding +NEVERDEINSTALL as I
proposed down the thread? You installed an experimental port A;
pkg_deinstall -R A deinstalls it and all dependencies it introduced,
except:

  * dependencies needed by some other ports (you want them, of course),

  * ports marked with +NEVERDEINSTALL (by including them to the -x
    list), since you want them for some special reason (they were --
    optionally, of course -- marked so when you listed them with
    portinstall on the command line).

Please take a look.

Nikola Le=C4=8Di=C4=87=20



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