Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2005 09:58:41 +0300
From:      Abu Khaled <khaled.abu@gmail.com>
To:        john@day-light.com
Cc:        "M. Goodell" <freebsdutah@yahoo.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Complete Port Removal Question
Message-ID:  <a64c109e0506162358490e9c08@mail.gmail.com>
In-Reply-To: <NHBBKEEMKJDINKDJBJHGCEIHJEAD.john@day-light.com>
References:  <20050616152358.99794.qmail@web32415.mail.mud.yahoo.com> <NHBBKEEMKJDINKDJBJHGCEIHJEAD.john@day-light.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/16/05, John Brooks <john@day-light.com> wrote:
> "pkg_info -r <pkgname>"    shows dependencies
>=20
> "pkg_delete -r <pkgname>"     removes pkg and dependencies
>=20
> --
> John Brooks
> john@day-light.com
>=20
> > -----Original Message-----
> > From: owner-freebsd-questions@freebsd.org
> > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of M. Goodell
> > Sent: Thursday, June 16, 2005 10:24 AM
> > To: FreeBSD Questions
> > Subject: Complete Port Removal Question
> >
> >
> >
> > How can I remove a port and all of it's dependencies from a
> > system? For example, I installed sqWebmail and tried it out then
> > decided it's not what we were looking for. Now, I would like to
> > not only remove sqWebmail but all of the stuff it installed along with =
it.
> >
> > sqwebmail also installed things like:
> >
> > - courier-authlib-base-0.56
> > - ispell-3.2.06_13
> >
> > and others as well
> >
> > Is there a safe / quick way to remove the dependencies for a port
> > and not break the rest of the system by removing stuff other
> > things depend on? For example, I don't want to remove Perl
> > obviously which is a dependency of sqwebmail.
>=20

I guess pkg_delete -r <portname> is not what he asked for since it
well deinstall all those depending on the given package/port. He wants
to einstall all those required by the given package/port.

for example gmake-3.80_2
# pkg_info -r gmake-3.80_2
Information for gmake-3.80_2:

Depends on:
Dependency: libiconv-1.9.2_1
Dependency: gettext-0.14.4_1

# pkg_delete -r gmake-3.80_2
This well only remove gmake-3.80_2 but not what gmake depends on to
run (libiconv and gettext) and to build (libtool)

There are alos build dependenies that would not be removed since they
are only required to build the package/port but not to run it (libtool
for example is required to build gmake but not to run it).

I use portupgrade and its tools to install/remove packages/ports.
for example if I want to remove gmake and all it's 'RUN' dependencies
(libiconv and gettext)

# pkg_deinstall -iR gmake
This well prompt for each step to remove gmake and ports needed to run
it but libtool well not get removed or asked for to be removed since
it is not required to run gmake.

There are many tools in /usr/ports/sysutils that well help you remove
packages/ports not required to run allready installed ports/packages.

pkg_cutleaves
pkg_rmleaves
portmanager
portupgrade

My favorite all is portupgrade since it has many utilities for example
pkg_deinstall

Try to install portupgrade then

# pkg_deinstall -iR sqwebmail

the -i option request confirmation for each package removal
The -R option Deinstall all those required by the given packages as well.
Aftrer removing sqwebmail it well ask you to remove
- courier-authlib-base-0.56
- ispell-3.2.06_13

as well perl and/or other dependencies so don't forget to answer with
"no" for packages you need.

--=20
Kind regards
Abu Khaled



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