Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 17:27:56 -0500
From:      "Placid Publishing, LLC" <peter@placidpublishing.net>
To:        Bill Moran <wmoran@potentialtech.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Uninstalling Ports Question
Message-ID:  <461C0F6C.4070205@placidpublishing.net>
In-Reply-To: <20070410174944.d3dc28fa.wmoran@potentialtech.com>
References:  <461C0322.8030908@placidpublishing.net> <20070410174944.d3dc28fa.wmoran@potentialtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Bill. I use the port upgrade suit for all of my port management 
needs. I guess what I can do is just pkg_info the pkg I am going to 
delete then see if I need the deps or not and un-install them as well.

Bill Moran wrote:
> In response to "Placid Publishing, LLC" <peter@placidpublishing.net>:
>
>   
>> Say I have a new system with nothing installed on it yet from the ports 
>> collection. Lets say I install Apache and lets say it requires php, 
>> python, perl, and ruby. Now lets say I uninstall Apache with "pkg_delete 
>> Apache". Will it remove php, python, perl, and ruby? Or will it leave 
>> those packages? Even if nothing else is depending on them?
>>     
>
> The system does not automatically clean up dependencies for you.  If
> you uninstall a package that leave dependencies behind, you'll have to
> clean them up yourself.
>
>   
>> If it does, how can I remove those quickly with a pkg_* command? Also, 
>> what happens if other programs I installed later use php, python, or 
>> perl? I'm guessing they would just be left?
>>     
>
> Install and use ports-mgmnt/pkg_cutleaves.  It solves these problems if
> you always use it to uninstall software.
>
>   




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