List Info

Thread: Re: commandline to remove a package and its dependencies




Re: commandline to remove a package and its dependencies
country flaguser name
United States
2007-06-26 05:44:22
[ added freebsd-questions to CC: ]

On Tue, 26 Jun 2007 15:52:56 +0800
Zhang Weiwu <zhangweiwurealss.com> wrote:

> From: Zhang Weiwu <zhangweiwurealss.com>
> To: Norberto Meijome <freebsdmeijome.net>
> Subject: commandline to remove a package and its
dependencies
> Date: Tue, 26 Jun 2007 15:52:56 +0800
> X-Mailer: Evolution 2.8.2 
> Organization: Real Softservice
> 
> Dear list
> 
> Stupid question again. Is there a commandline tool that
I can use to
> remove a package 'wmaker', and then it will prompt me
if I wish to
> remove packages that was required only by 'wmaker' and
after wmaker is
> removed, become required by no other packages. Such
packages existed
> only for 'wmaker' is very likely should be removed
together with wmaker.

Hi Zhang,
you basically want to remove "leaves" from the
package tree - install
pkg_cutleaves from ports :

pkg_cutleaves-20061113 Interactive script for deinstalling
'leaf' packages

I suggest you run it interactively, as well as creating a
file with exclusions
(there are some leaves that you want to keep of course). I
run it as :

[betomayiin] [Tue Jun 26 20:43:55 2007]
/usr/home/betom
$ cat bin/show_pkg_leaves.sh 
#!/bin/sh
pkg_cutleaves -xcl

HIH,
Beto
_________________________
{Beto|Norberto|Numard} Meijome

"Gravity cannot be blamed for people falling in
love."
  Albert Einstein

I speak for myself, not my employer. Contents may be hot.
Slippery when wet.
Reading disclaimers makes you go blind. Writing them is
worse. You have been
Warned.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: commandline to remove a package and its dependencies
user name
2007-06-26 23:54:50
On 26/06/07, Norberto Meijome <freebsdmeijome.net> wrote:
> [ added freebsd-questions to CC: ]
>
> On Tue, 26 Jun 2007 15:52:56 +0800
> Zhang Weiwu <zhangweiwurealss.com> wrote:
>
> > From: Zhang Weiwu <zhangweiwurealss.com>
> > To: Norberto Meijome <freebsdmeijome.net>
> > Subject: commandline to remove a package and its
dependencies
> > Date: Tue, 26 Jun 2007 15:52:56 +0800
> > X-Mailer: Evolution 2.8.2
> > Organization: Real Softservice
> >
> > Dear list
> >
> > Stupid question again. Is there a commandline tool
that I can use to
> > remove a package 'wmaker', and then it will prompt
me if I wish to
> > remove packages that was required only by 'wmaker'
and after wmaker is
> > removed, become required by no other packages.
Such packages existed
> > only for 'wmaker' is very likely should be removed
together with wmaker.
>
> Hi Zhang,
> you basically want to remove "leaves" from
the package tree - install
> pkg_cutleaves from ports :
>
> pkg_cutleaves-20061113 Interactive script for
deinstalling 'leaf' packages
>
> I suggest you run it interactively, as well as creating
a file with exclusions
> (there are some leaves that you want to keep of
course). I run it as :
>
> [betomayiin] [Tue Jun 26 20:43:55 2007]
> /usr/home/betom
> $ cat bin/show_pkg_leaves.sh
> #!/bin/sh
> pkg_cutleaves -xcl

For something htat is part of the extant base:
# pkg_delete -rd quack-bark-9.9.9

Though you may want to add -n the first go.

-- 
--
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )