Date: 10 Mar 2002 14:25:57 -0800 From: swear@blarg.net (Gary W. Swearingen) To: "Paul C. Boyle" <freebsdruns@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Removing installed programs? Message-ID: <skk7skawlm.7sk@localhost.localdomain> In-Reply-To: <200203101846.NAA07847@alpha.vaxxine.com> References: <200203101846.NAA07847@alpha.vaxxine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Paul C. Boyle" <freebsdruns@yahoo.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?skk7skawlm.7sk>