Re: Uninstalling Port installed applications
From: parv (parv_fm_at_emailgroups.net)
Date: 10/16/03
- Previous message: Giorgos Keramidas: "Re: utility idea"
- In reply to: Michael Lee: "Uninstalling Port installed applications"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Oct 2003 17:16:51 -0400 To: Michael Lee <kclee@tiny.ws>
in message <000901c393da$6a1a06b0$ca00a8c0@michael>,
wrote Michael Lee thusly...
>
> Say, there are 5 applications -- A, B, C, D, E
>
> Installing A depends on B,C,D, and E.
...
> Supposed that E was also required by another application F which
> was already installed in the system, I wonder if I type 'make
> deinstall' under /usr/port/xxx/A and try to uninstall A, will the
> port system help me uninstall B,C,D but not uninstall E ?
I don't think the port system could help by itself, either like
portupgrade or "Add/Remove Software" on Windows.
If you know the dependencies, just do it yourself one port at
a time. There are two ways: pkg_delete(1) (pkg_deinstall(1) comes from
portupgrade(1)) & "make deinstall", ports(7).
By default, pkg_delete will not remove a dependency (in your case
any of B, C, D, E) if the dependent port still exists (A) in the
ports database (/var/db/pkg). You can force it though via "-f"
option, and recursively delete ports via "-r". See pkg_delete(1)
for details.
The "deinstall" target (run in the directory of
to-be-deinstalled-port) will deinstall the dependency port, B, C, D,
or E, regardless of existence of a dependent port, A. If the
dependent port exists, a warning message will be generated informing
you of the fact.
That has been my experience of w/ the ports so far.
Back to your case...
- Remove A (either by pkg_delete or "make deinstall")
- Remove B, C, D.
- Done (since you need E, no need to do anything else).
PS: You should consider installing portupgrade only if to keep the
ports database current, like i do.
- Parv
-- _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Giorgos Keramidas: "Re: utility idea"
- In reply to: Michael Lee: "Uninstalling Port installed applications"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|