phoenix said:Yeah, "make deinstall" uses the information in the port Makefile and pkg-plist to see what to remove. If the version in the Makefile is not identical to the installed version, files can be left behind or accidentally deleted.
# less +/deinstall: /usr/ports/Mk/bsd.port.mk
shows that 'make deinstall' actually just runs 'pkg_delete -f' on the installed version.# make reinstall
lets you reinstall a port without deinstalling it first. If there's a need to redo a port, I usually use deinstall, look for leftover files, then install.wblock said:# less +/deinstall: /usr/ports/Mk/bsd.port.mk
shows that 'make deinstall' actually just runs 'pkg_delete -f' on the installed version.
So 'make deinstall' and 'pkg_delete' are the same, except that 'make deinstall' has some additional checks and so is actually safer. pkg_delete -f will blindly delete whatever package you tell it, while deinstall will actually look up the correct package.
phoenix said:That's right. They changed how this works last year, to remove the possible mismatch. I always forget this. Thanks for the reminder. One of these days, I'll remember it.![]()
See pkg_delete(1), more specifically the -x option.mdudley said:I know it is 5.2.XXXX, but that is all, and pkg_delete requires the proper version number to work.
pkg_version(1), pkg_info(1).Is there any way I can find out what versions of php still need deleting?