Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2006 14:22:31 -0500
From:      "Patrick Bowen" <pbowen@fastmail.fm>
To:        freebsd-questions@freebsd.org
Subject:   Re: How do uninstall a package and all it's dependencies ?
Message-ID:  <1145733751.29291.259685008@webmail.messagingengine.com>

next in thread | raw e-mail | index | archive | help
Low Kian Seong wrote:

> The problem about the -R option is that normally that takes off stuff 
> like xorg-server and friends too ! Really not nice, or am I doing 
> something wrong ?
>
> On 4/20/06, *Patrick Bowen* <pbowen@fastmail.fm 
> <mailto:pbowen@fastmail.fm>> wrote:
>
>     Low Kian Seong wrote:
>
>     >Dear all,
>     >
>     >Been digging around but never really found the answer to this
>     one, say if i
>     >install xfce4 package and then later I want to uninstall xfce4
>     and *all*
>     >it's dependencies, how do i do it ?
>     >
>     >Thank you all in advance.
>     >_______________________________________________
>     >freebsd-questions@freebsd.org
>     <mailto:freebsd-questions@freebsd.org> mailing list
>     > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>     >To unsubscribe, send any mail to
>     "freebsd-questions-unsubscribe@freebsd.org
>     <mailto:freebsd-questions-unsubscribe@freebsd.org>"
>     >
>     >
>     >
>
>     Seong;
>
>     I do that fairly often when I'm just looking at packages. Try
>     "pkg_deinstall -R package-name", where package-name is replaced
>     with the
>     name of the package you want to delete, in your case xfce4.
>
>     pkg_deinstall -R xfce4.
>
>     Patrick
>     _______________________________________________
>     freebsd-questions@freebsd.org
>     <mailto:freebsd-questions@freebsd.org> mailing list
>     http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>     To unsubscribe, send any mail to
>     "freebsd-questions-unsubscribe@freebsd.org
>     <mailto:freebsd-questions-unsubscribe@freebsd.org>"
>
>

If the dependancy pkg is required by something else, then pkg_deinstall 
will tell me that it can't delete the dependancy pkg because its used by 
another pkg. Works like a charm.

Patrick

-- 
  Patrick Bowen
  pbowen@fastmail.fm




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