Bug 220666 - ports-mgmt/pkg: "pkg delete -a" stops halfway
Summary: ports-mgmt/pkg: "pkg delete -a" stops halfway
Status: Closed DUPLICATE of bug 219979
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-12 01:37 UTC by Victor Sudakov
Modified: 2017-07-12 20:23 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***