View Single Post
  #8   (View Single Post)  
Old 9th September 2009
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

Quote:
Originally Posted by phoenix View Post
One thing to watch out for is that the "deinstall" target uses the information in the current port Makefile ... it doesn't use the information in /var/db/pkg to remove the port. If you have version X.0 of the port installed, update the ports tree, which includes version Y.3, and you run "make deinstall" in there ... you may end up with files left behind and a lot of errors flashing by on the screen.

It's much safer to use pkg_delete -xi appname to uninstall apps. That always uses the information in /var/db/pkg/<port-version>/ to remove the app. This reflects what's already on the disk.

"make deinstall" is really only useful for testing a port (make install; make deinstall).
The deinstall target actually uses "pkg_delete -f" to deinstall the package, so it won't matter if the Makefile or pkg-plist was updated. You really shouldn't end up with files left behind or errors if the package was installed correctly.

I do agree it would be safer to use "pkg_delete -i" to get confirmation first, though.
Reply With Quote