From owner-freebsd-questions Wed Sep 20 14:35:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from utasvexg001.hfnweb.com (mail.financialfusion.com [207.49.36.244]) by hub.freebsd.org (Postfix) with ESMTP id 35FA637B42C; Wed, 20 Sep 2000 14:35:29 -0700 (PDT) Received: by utasvexg001.financialfusion.com with Internet Mail Service (5.5.2650.21) id ; Wed, 20 Sep 2000 15:35:27 -0600 Message-ID: From: Mike Morgan To: 'Mark Ovens' Cc: "'freebsd-questions@freebsd.org'" Subject: RE: deleting all installed ports/pkgs Date: Wed, 20 Sep 2000 15:35:26 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0234A.B0F5A1F6" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0234A.B0F5A1F6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The former is exactly what I want to do. tnx, Michael -----Original Message----- From: Mark Ovens [mailto:marko@freebsd.org] Sent: Wednesday, September 20, 2000 3:17 PM To: Mike Morgan Cc: 'freebsd-questions@freebsd.org' Subject: Re: deleting all installed ports/pkgs On Wed, Sep 20, 2000 at 02:58:44PM -0600, Mike Morgan wrote: >=20 >=20 > Is there a command which would delete all the ports on my system or > recursively delete all ports dependant on a particular port? >=20 Do you mean delete all *installed* ports/packages or all the port skeletons under /usr/ports? If it's the former, and you are _absolutely_ _certain_ that you want to do this then try: % sh (if you are running csh/tcsh) $ su Password: # for i in `ls /var/db/pkg` > do > pkg_delete -f $i > done Note that the ``-f'' is needed because without it a port/package won't be deleted if a dependency is still installed. You will also see lots of warnings about this (and missing files) because you are removing them in alphabetical order. #include I accept no responsibility for you screwing your system (e.g. XFree will probably get removed as well). > tnx, > Michael Morgan --=20 4.4 - The number of the Beastie ________________________________________________________________ 51.44=B0N FreeBSD - The Power To Serve http://www.freebsd.org 2.057=B0W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message ------_=_NextPart_001_01C0234A.B0F5A1F6 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: deleting all installed ports/pkgs

The former is exactly what I want to do.

tnx,
Michael

-----Original Message-----
From: Mark Ovens [mailto:marko@freebsd.org]
Sent: Wednesday, September 20, 2000 3:17 PM
To: Mike Morgan
Cc: 'freebsd-questions@freebsd.org'
Subject: Re: deleting all installed = ports/pkgs


On Wed, Sep 20, 2000 at 02:58:44PM -0600, Mike Morgan = wrote:
>
>
> Is there a command which would delete all the = ports on my system or
> recursively delete all ports dependant on a = particular port?
>

Do you mean delete all *installed* ports/packages or = all the port
skeletons under /usr/ports?

If it's the former, and you are _absolutely_ = _certain_ that you want
to do this then try:

   % sh     (if you are = running csh/tcsh)
   $ su
   Password:
   # for i in `ls /var/db/pkg`
   > do
   > pkg_delete -f $i
   > done

Note that the ``-f'' is needed because without it a = port/package won't
be deleted if a dependency is still installed. You = will also see lots
of warnings about this (and missing files) because = you are removing
them in alphabetical order.

#include <disclaimer.h>
I accept no responsibility for you screwing your = system (e.g. XFree
will probably get removed as well).

> tnx, > Michael Morgan

--
        =         4.4 - The = number of the Beastie
_______________________________________________________________= _
51.44=B0N  FreeBSD - The Power To Serve http://www.freebsd.org
2.057=B0W  My Webpage http://ukug.uk.freebsd.org/~mark
mailto:marko@freebsd.org &nbs= p;           &nbs= p;  http://www.radan.com



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

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