Subject: Re: pkg_delete ALL how to do this pls?
To: John Klos <john@ziaspace.com>
From: Paul (NCC/CS). <pts@bom.gov.au>
List: tech-pkg
Date: 02/24/2005 15:08:37
Guys,

can someone help me put together a command please.
Sorry for script ignorance.
To delete all packages.

I've tried:


pkg_info | awk '{ print $1 }' | pkg_delete -f

pkg_delete -f < `pkg_info | awk '{ print $1 }' `

but neither work,

thanks
Paul.




"Paul (NCC/CS)." wrote:

> Ripper, thankyou,
>
> John Klos wrote:
>
> > Hi,
> >
> > > Thanks for all your help guys, but I'm not getting far.
> > > None of this explains why it doesn't link to the correct
> > > libs when built from pkg_src?
> > > I don't want to build gnumeric from source by hand.
> >
> > If stuff can't find libxml2, why not manually reinstall libxml2 and see if
> > that fixes things? (pkgsrc/textproc/libxml2)
> >
>
> tried this thanks anyway.
>
> >
> > > Ok, what I want to do is delete all packages.
> > > And start again.
> > > How do I do this please?
> >
> > pkg_delete -f `ls /var/db/pkg`?
>
> many thanks. I'll give this a go.
>
> >
> >
> > > . How can I get pkg_info to show pkg names only
> > > without the description so I can pipe it to pkg_delete?
> >
> > pkg_info | awk '{ print $1 }'
> >
> > John Klos
>
> and this:)
>
> chs,
> P.
>
> --
>
> ____________________________________________
>
> Paul
> Australian Bureau Of Meteorology
> ____________________________________________

--

____________________________________________

Paul
Australian Bureau Of Meteorology
____________________________________________