[Bug 220028] ports-mgmt/pkg: "pkg remove -a" doesn't remove package after "pk" in alphabetic order
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jun 16 06:22:46 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220028
Bug ID: 220028
Summary: ports-mgmt/pkg: "pkg remove -a" doesn't remove package
after "pk" in alphabetic order
Product: Base System
Version: 11.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: stievenard.david at gmail.com
pkg 1.10.1
FreeBSD 11.0-RELEASE-p1
-----------------------------------------------
the doc says
-----------------------------------------------
pkg remove
-a, --all Deletes all installed packages except for pkg(8) from the
system and cleans the database of information related to
removed packages.
-----------------------------------------------
when I try
-----------------------------------------------
root at test-server-1:~ # pkg remove -a
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 7 packages (of 0 packages
in the universe):
Installed packages to be REMOVED:
pkg-1.10.1
png-1.6.29
renderproto-0.11.1
scrnsaverproto-1.2.2
tcl86-8.6.6_2
xextproto-7.3.0
xproto-7.0.31
Number of packages to be removed: 7
The operation will free 20 MiB.
Proceed with deinstalling packages? [y/N]: y
pkg: Cannot delete pkg itself without force flag
-----------------------------------------------
my understanding
-----------------------------------------------
it seems that pkg goes into the list of packages in alphabetic order to delete.
When it reaches pkg itself, without the "-f" flag, it doesn't uninstall it and
stops there in stead of carrying on in the list.
best regards
dasti
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list