Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2001 16:08:54 -0700 (PDT)
From:      abram olson <dacia_icarus@yahoo.com>
To:        parv <parv_@yahoo.com>
Cc:        stable@freebsd.org
Subject:   Re: mass uninstall all ports?
Message-ID:  <20010712230854.19085.qmail@web13505.mail.yahoo.com>
In-Reply-To: <20010712191017.B29406@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you parv.  I'm reading the man page right now.


--- parv <parv_@yahoo.com> wrote:
> on Jul 12 18:48, i got this from abram...
> > I have updated the ports using cvsup.  So, this:
> > 
> > cd /var/db/pkg && pkg_delete -fd *
> > 
> > will remove all the packages and ports that are
> > installed?
> > 
> > I really want to understand what I'm doing here
> ;-)
> > 
> > Another person suggested I do:
> > 
> > pkg_info | cut -d\  -f1 | xargs pkg_delete
> > 
> > what is the difference between what these two
> commands
> > will do?
> > 
> > Abe
> 
> 
> you know, in perl, there is a saying:
> 
>   there is more than one way to do it.
> 
> 
> ...in the end both will do the same thing:
> remove/delete all the
> installed software as listed in /var/db/pkg. if you
> go the 'pkg_info' 
> route, you should add '-f' and or '-d' flag. 
> 
> if pkg_delete/xargs/shell complain that 'pipe
> broken', 'too many 
> arguments', or some such, then you can try this...
> 
> # find /var/db/pkg -type d -execdir pkg_delete -fd
> {} \;
> 
> 
> in any case, don't miss to read the pkg_delete &
> find manpages.
> 
> 
> -- 
>  so, do you like word games or scrabble?
> 	 - parv


=====
Jesus saves.
Allah forgives,
Cthulu thinks you'd make a nice sandwich.
------------------------------------------
See my digital art at:

http://www.foramenmagnum.net/images.html

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010712230854.19085.qmail>