Bug 252055 - pkg-clean is emptying cache directory
Summary: pkg-clean is emptying cache directory
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-22 19:51 UTC by Usama Khan
Modified: 2021-01-25 22:33 UTC (History)
3 users (show)

See Also:
linimon: maintainer-feedback? (pkg)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Usama Khan 2020-12-22 19:51:42 UTC
"pkg clean" is removing everything from the cache directory.

"pkg clean" (without any option/argument) removes packages that have been superseded by newer versions, and any packages that are no longer provided. Moreover, in order to remove all the packages from the cache, "pkg clean -a" is used. However, it is observed that even without giving an "-a" option, "pkg clean" is deleting all cached packages including those, which have not been superseded by newer versions yet and are still in use.