which is the better way...?

Polytropon freebsd at edvax.de
Wed Dec 2 11:48:54 UTC 2009


On Wed, 2 Dec 2009 11:01:50 +0100, Patrick Lamaiziere <patfbsd at davenulle.org> wrote:
> Le Tue, 1 Dec 2009 23:15:11 -0800,
> Gary Kline <kline at thought.org> a écrit :
>  
> > it is better to pkg_delete OOo-301 or just cd to /usr/local and
> > /bin/rm -r it from there?  this time i'll make a not of the preferred
> > way of cleaning out the old stuff..
> 
> You should use pkg_delete to remove an installed port.
> It removes the program, the doc, ..., but also entries in the pakage
> database (/var/db/pkg/).

Anbd if there's still stuff in the installed ports directory
left over - pkg_delete will inform you about that - you can
still use rm -r for a complete delete; anyway, pkg_delete
should be the first step. If you use portupgrade, you should
additionally run "pkgdb -aF" after using pkg_delete, so its
package database keeps being up to date.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list