I try to figure out how to manage pub packages. For example, I have the following pubspec.yaml:
name: app
dependencies:
intl: any
browser: any
polymer: any
transformers:
- polymer
After time I consider to remove intl
package. As far as I understand running pub get
again automatically remove unused packages (to be more precise it removes links but not actual files). If so how can I list/remove actual packages available globally (on Ubuntu under /home/username/.pub-cache/hosted/pub.dartlang.org/
)?
Only manually by deleting them using your OS tools. There is no pub ...
support for that.
pub ...
only works for the current project (current working directory) and it doesn't know if versions are used by other projects on your disk.