From owner-freebsd-questions@FreeBSD.ORG Sun May 8 12:38:00 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8935B106566C for ; Sun, 8 May 2011 12:38:00 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0D4BC8FC14 for ; Sun, 8 May 2011 12:37:59 +0000 (UTC) Received: by bwz12 with SMTP id 12so5067297bwz.13 for ; Sun, 08 May 2011 05:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:x-authentication-warning:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=HUTaMkkr7P7iPdpl6nV6NIZSmbBLxqhJvnZbWE4KHS8=; b=gzm+BhCqzL8nyIbzzB8sCwlJ6g1bINQnGkWsNJVhoLcHGNgSLSa+53bWwAHXu5RXwW OM6vNsr+IlTS5fqFypyYA1oHAobSxY/4VRQGPps9qwQijBcM3+NrfmA2S2Yh3qP+ilB8 E5o5BYTFNSW0fpv4eNcNJiW92WAf8dEeu77tQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; b=G/+asCq/t1BfrlakvUrl1fo4x7j+GCZNpTn5yL8UczDCaU1jGd4sPJcF86NSpbys5A lcJAMoNwrar5OvOIt8kFUmOXei6ZTBtv4exZoYXqh3RsKSpo/t5+U3+CAkuyYukz61lg BxTUpB19tI/Cy0LFyPCEqYZ2jPZ7RDX1JDQYM= Received: by 10.204.19.19 with SMTP id y19mr1844326bka.164.1304858278815; Sun, 08 May 2011 05:37:58 -0700 (PDT) Received: from procyon.xvoid.org ([213.132.76.142]) by mx.google.com with ESMTPS id 16sm3070258bkm.6.2011.05.08.05.37.57 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 May 2011 05:37:58 -0700 (PDT) Received: from procyon.xvoid.org (yuri@procyon.xvoid.org [IPv6:::1]) by procyon.xvoid.org (8.14.4/8.14.4) with ESMTP id p48Cbs2w023851; Sun, 8 May 2011 16:37:54 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by procyon.xvoid.org (8.14.4/8.14.4/Submit) id p48CbsCQ023850; Sun, 8 May 2011 16:37:54 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: procyon.xvoid.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Sun, 8 May 2011 16:37:54 +0400 From: Yuri Pankov To: Dino Vliet Message-ID: <20110508123754.GC18573@procyon.xvoid.org> References: <810820.50619.qm@web113604.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <810820.50619.qm@web113604.mail.gq1.yahoo.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-questions@freebsd.org Subject: Re: remove all ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2011 12:38:00 -0000 On Sun, May 08, 2011 at 05:05:19AM -0700, Dino Vliet wrote: > Hi freebsd people, > just to make sure I don't end up with a unworkable system I want to > ask the list if I'm on the right track. > > I have this workstation running FreeBSD 8.1 and have used it as an > application/database server for most of the last 2 years. Do to my > assignment being finished I want to rearrange stuff, without going > to a re-install as everything has been setup to my liking (gmirror > etc etc). > > Over time a few ports  were installed, for which I have no use now. > I figured out the alternatives I have are: > > A) remove all ports Except the ones I would like to keep Try using ports-mgmt/pkg_cutleaves (with the recursive option). > B) remove all ports and then > reinstall the ports that I would like to keep > > What are the commands for option A en B (assuming bash, weka, > postgresql*, screen, gawk, rsync, jdk would have to stay?) > > For option A I tried pkg_deinstall -r xorg-minimal-7.5.1 but only > that port got removed and not the ports I found after I did > pkg_info -r xorg-minimal-7.5.1 HTH, Yuri