From owner-freebsd-questions Sun Mar 10 14:22:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 679E237B400 for ; Sun, 10 Mar 2002 14:22:39 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 2AFE2BD65; Sun, 10 Mar 2002 14:22:39 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id OAA04735; Sun, 10 Mar 2002 14:22:38 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g2AMPwt05092; Sun, 10 Mar 2002 14:25:58 -0800 (PST) (envelope-from swear@blarg.net) To: "Paul C. Boyle" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Removing installed programs? References: <200203101846.NAA07847@alpha.vaxxine.com> From: swear@blarg.net (Gary W. Swearingen) Date: 10 Mar 2002 14:25:57 -0800 In-Reply-To: <200203101846.NAA07847@alpha.vaxxine.com> Message-ID: Lines: 31 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Paul C. Boyle" writes: > What is the best way to remove installed programs that were installed through > the ports? > What is the best way to remove installed programs that were installed through > the /stand/sysinstall method? Same way for both, except there are ways documented in the Handbook and elsewhere for cleaning your port skeletons (most importantly their "work" directories, which are often already cleaned, depending on how you used the port tools). Here's my notes on the subject: METHOD ONE: -- Do "pkg_delete pkg-name". This is the old way. It only deletes the package and pkg-name must include a version ID. METHOD TWO: -- Do "pkg_deinstall [opts] [pkgname_glob]" This is the new way. It uses pkg_delete but does more, like handling dependencies, using wildcards, etc. -- Best options: -i Request confirmation before deleting each package. -n Just show what would be done. -P Preserve shared libs. -r Deinstall all pkgs depending on the named pkgs. (recurse down) -R Deinstall all pkgs upon which the named pkgs depend. (recurse up) -v verbose METHOD used: -- Use "pkg_deinstall -nr pkgname_glob" and see what depends on this package. Then maybe repeat without "-nr". To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message