| OLD | NEW |
| 1 --- | 1 --- |
| 2 layout: default | 2 layout: default |
| 3 title: "pub install" | 3 title: "pub install" |
| 4 description: "Reference documentation for the `pub install` command." | 4 description: "Reference documentation for the `pub install` command." |
| 5 has-permalinks: true | 5 has-permalinks: true |
| 6 --- | 6 --- |
| 7 | 7 |
| 8 # {{ page.title }} | 8 # {{ page.title }} |
| 9 | 9 |
| 10 <aside class="note"> |
| 11 <a href="index.html" style="text-align: right;"> |
| 12 <i class="icon-hand-right icon-white"> </i> |
| 13 Looking for the quick start guide? Get started with pub |
| 14 </a> |
| 15 </aside> |
| 16 |
| 10 $ pub install | 17 $ pub install |
| 11 | 18 |
| 12 This command installs all the dependencies listed in the | 19 This command installs all the dependencies listed in the |
| 13 [`pubspec.yaml`](pubspec.html) file in the current working directory, as well as | 20 [`pubspec.yaml`](pubspec.html) file in the current working directory, as well as |
| 14 their [transitive dependencies](glossary.html#transitive-dependencies), to a | 21 their [transitive dependencies](glossary.html#transitive-dependencies), to a |
| 15 `packages` directory located next to the pubspec. For example: | 22 `packages` directory located next to the pubspec. For example: |
| 16 | 23 |
| 17 $ pub install | 24 $ pub install |
| 18 Dependencies installed! | 25 Dependencies installed! |
| 19 | 26 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 installed. Dependencies downloaded over the internet, such as those from Git and | 69 installed. Dependencies downloaded over the internet, such as those from Git and |
| 63 [pub.dartlang.org](http://pub.dartlang.org), are stored in a system-wide cache | 70 [pub.dartlang.org](http://pub.dartlang.org), are stored in a system-wide cache |
| 64 and linked to from the `packages` directory. This means that if multiple | 71 and linked to from the `packages` directory. This means that if multiple |
| 65 packages use the same version of the same dependency, it will only need to be | 72 packages use the same version of the same dependency, it will only need to be |
| 66 downloaded and stored locally once. It also means that it's safe to delete the | 73 downloaded and stored locally once. It also means that it's safe to delete the |
| 67 `packages` directory without worrying about re-downloading packages. | 74 `packages` directory without worrying about re-downloading packages. |
| 68 | 75 |
| 69 By default, the system package cache is located in the `.pub-cache` subdirectory | 76 By default, the system package cache is located in the `.pub-cache` subdirectory |
| 70 of your home directory. However, it may be configured by setting the `PUB_CACHE` | 77 of your home directory. However, it may be configured by setting the `PUB_CACHE` |
| 71 environment variable before running Pub. | 78 environment variable before running Pub. |
| OLD | NEW |