Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2015 09:02:01 -0500
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        Chris Knight <stryqx@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Recursively Deinstalling and Upgrading Packages/Ports without Breaking Dependencies?
Message-ID:  <506815E7-ED7A-4381-9ABA-D8FF84406A4D@gromit.dlib.vt.edu>
In-Reply-To: <CAHgj5TRYHbCKzVGvG4UzDO0LMZBRqUAsyk%2BiPcAwwUdtA36n-w@mail.gmail.com>
References:  <54C6CDB5.2040501@gmail.com> <54C73B84.1080704@infracaninophile.co.uk> <CAHgj5TRYHbCKzVGvG4UzDO0LMZBRqUAsyk%2BiPcAwwUdtA36n-w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jan 27, 2015, at 3:13 AM, Chris Knight <stryqx@gmail.com> wrote:

> Howdy,
> 
> On 27 January 2015 at 18:17, Matthew Seaman
> <m.seaman@infracaninophile.co.uk> wrote:
>> On 2015/01/26 23:28, Pierre-Luc Drouin wrote:
>>> With portupgrade, I used to use "pkg_deinstall -R" to deinstall a
>>> package and its dependencies while preserving the packages on which
>>> other packages were depending on. With pkgng, the behaviour of
>>> "pkg_deinstall -R" changed and this command is now breaking
>>> dependencies. Is there a new method to safely remove packages recursively?
>> 
>>  # pkg delete pkgname
>>  # pkg autoremove
>> 
> That only works if the dependencies were added as automatic
> dependencies. Won't work if the dependency wasn't automatically added
> as part of the package's prerequisites for installation.

The ports-mgmt/pkg_cutleaves port will let you trim your installed 
packages, working inwards from outer leaf packages.  It's also possible 
to designate a list of packages to pkg_cutleaves that you always want 
to retain, so as to speed up trimming by not presenting these (and 
anything they depend upon) as candidates for removal.

Cheers,

Paul.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?506815E7-ED7A-4381-9ABA-D8FF84406A4D>