Package dependency uninstallation

Let’s say package A depends on B when first installed. After a while, a new version of A no longer depends on B. If I update A, will Julia automatically uninstall B if it is not a dependency for any other packages?


But if by “uninstall” you mean “delete from disk”, then you need to garbage collect and delete unused packages with Pkg.gc().