Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 1999 15:06:46 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        questions@FreeBSD.org
Subject:   Re: pkg_delete vs make deinstall
Message-ID:  <38394DF6.489431C8@scc.nl>
References:  <Pine.BSF.4.02A.9911221322480.33699-100000@dogma.freebsd-uk.eu.org>, <19991122144354.V22782@lucifer.bart.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeroen Ruigrok van der Werven wrote:
> 
> -On [19991122 14:30], Jonathon McKitrick (jcm@dogma.freebsd-uk.eu.org) wrote:
> >What is the difference?  I have  a guess: make deinstall only works if
> >there is a deinstall target in the makefile, while pkg_delete will simply
> >erase all the files in the installation and remove it from the database,
> >correct?

> make deinstall simply uses pkg/PLIST to remove all the files and
> directories needed for the program.
> 
> pkg_delete gets this info from /var/db/pkg/portname/+CONTENTS
> 
> So there is a difference in how the two work.

From /usr/ports/Mk/bsd.port.mk:

.if !target(deinstall)
deinstall:
	@${ECHO_MSG} "===>  Deinstalling for ${PKGNAME}"
	@${PKG_DELETE} -f ${PKGNAME}
	@${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
.endif

The *default* behaviour of 'make deinstall' is to use pkg_delete...

-- 
Marcel Moolenaar                        mailto:marcel@scc.nl
SCC Internetworking & Databases           http://www.scc.nl/
The FreeBSD project                mailto:marcel@FreeBSD.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38394DF6.489431C8>