Uninstalling Port installed applications

2003-10-16 Thread Michael Lee
Hi,

I have a question about uninstalling port.

Say, there are 5 applications -- A, B, C, D, E

Installing A depends on B,C,D, and E.
There is no problem that I type 'make install' under /usr/port/xxx/A
that the port system will help me install B,C,D,E since they are required by
application A.
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 ?

Thank you!

Michael Lee

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Uninstalling Port installed applications

2003-10-16 Thread Q
You are looking for the 'sysutils/portupgrade' port. It installs a tool
called pkg_deinstall.

So to achieve what you described, you would run 'pkg_deinstall -R A' 
and it would deinstall 'A' and any of its orphaned dependencies, ie.
B, C, D but not E.

Seeya...Q 

On Thu, 2003-10-16 at 21:41, Michael Lee wrote:

 Hi,
 
 I have a question about uninstalling port.
 
 Say, there are 5 applications -- A, B, C, D, E
 
 Installing A depends on B,C,D, and E.
 There is no problem that I type 'make install' under /usr/port/xxx/A
 that the port system will help me install B,C,D,E since they are required by
 application A.
 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 ?
 
 Thank you!
 
 Michael Lee
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Uninstalling Port installed applications

2003-10-16 Thread Michael Lee
Thank you for your reply.
I know there was a tool called portupgrade that can manage the ports very
well.
What I want to know is that if I do not use portupgrade, can 'make
deinstall' do what I expected ?

Thanks!

Michael Lee

- Original Message - 
From: Q [EMAIL PROTECTED]
To: Michael Lee [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 7:48 PM
Subject: Re: Uninstalling Port installed applications


 You are looking for the 'sysutils/portupgrade' port. It installs a tool
 called pkg_deinstall.

 So to achieve what you described, you would run 'pkg_deinstall -R A'
 and it would deinstall 'A' and any of its orphaned dependencies, ie.
 B, C, D but not E.

 Seeya...Q

 On Thu, 2003-10-16 at 21:41, Michael Lee wrote:

  Hi,
 
  I have a question about uninstalling port.
 
  Say, there are 5 applications -- A, B, C, D, E
 
  Installing A depends on B,C,D, and E.
  There is no problem that I type 'make install' under /usr/port/xxx/A
  that the port system will help me install B,C,D,E since they are
required by
  application A.
  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 ?
 
  Thank you!
 
  Michael Lee
 
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
[EMAIL PROTECTED]
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Uninstalling Port installed applications

2003-10-16 Thread parv
in message [EMAIL PROTECTED],
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

-- 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Uninstalling Port installed applications

2003-10-16 Thread Lowell Gilbert
Michael Lee [EMAIL PROTECTED] writes:

 What I want to know is that if I do not use portupgrade, can 'make
 deinstall' do what I expected ?

If the port hasn't been modified (e.g., by cvsup'ing ports) since it
was installed, yes.  Otherwise, you will need to do a pkg_delete(1). 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]