Matthew Seaman
2015-Jan-27 07:17 UTC
Recursively Deinstalling and Upgrading Packages/Ports without Breaking Dependencies?
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 Cheers, Matthew -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 882 bytes Desc: OpenPGP digital signature URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20150127/7d71715b/attachment.sig>
Chris Knight
2015-Jan-27 08:13 UTC
Recursively Deinstalling and Upgrading Packages/Ports without Breaking Dependencies?
Howdy, On 27 January 2015 at 18:17, Matthew Seaman <m.seaman at 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. -- Regards, Chris Knight