From owner-freebsd-questions Mon Nov 22 6:27:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.scc.nl (node1374.a2000.nl [62.108.19.116]) by hub.freebsd.org (Postfix) with ESMTP id 5AC5214BC2 for ; Mon, 22 Nov 1999 06:27:36 -0800 (PST) (envelope-from freebsd-questions@scc.nl) Received: (from daemon@localhost) by mail.scc.nl (8.9.3/8.9.3) id PAA77879 for questions@FreeBSD.org; Mon, 22 Nov 1999 15:06:51 +0100 (CET) (envelope-from freebsd-questions@scc.nl) Received: from GATEWAY by dwarf.hq.scc.nl with netnews for questions@FreeBSD.org (questions@FreeBSD.org) To: questions@FreeBSD.org Date: Mon, 22 Nov 1999 15:06:46 +0100 From: Marcel Moolenaar Message-ID: <38394DF6.489431C8@scc.nl> Organization: SCC vof Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: , <19991122144354.V22782@lucifer.bart.nl> Subject: Re: pkg_delete vs make deinstall Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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