Bug 220666

Summary: ports-mgmt/pkg: "pkg delete -a" stops halfway
Product: Ports & Packages Reporter: Victor Sudakov <vas>
Component: Individual Port(s)Assignee: freebsd-pkg (Nobody) <pkg>
Status: Closed DUPLICATE    
Severity: Affects Some People CC: marklmi26-fbsd, vas
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Victor Sudakov 2017-07-12 01:37:45 UTC
"pkg delete -a" is supposed to delete all packages except itself. Instead, pkg 1.10.1 stops halfway, informs that it won't delete itself (which is correct) and leaves a bunch of packages still installed (which is IMHO incorrect).

How to reproduce. You'd need many packages installed.

pkg install x11/gnome3 x11/xorg
pkg delete -a

Workaround:

pkg delete -af ; pkg install -y pkg
Comment 1 Mark Millard 2017-07-12 19:34:51 UTC
Bugzilla 219979 reports this already: This is a
duplicate. 220028 was also a duplicate and was
classified as such earlier.

Various people are running into this in various
contexts and reporting it.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2017-07-12 20:23:33 UTC

*** This bug has been marked as a duplicate of bug 219979 ***