120 | | === When I run `port list installed` I see the identical versions of some ports installed, why? === #portlist |
121 | | Using `port list installed` will give confusing results as the 'list' command bases its version information only on what is the currently-available version; so if you have port '''foo''' installed at versions 1 and 2 (with 2 being the current version available), `list installed` will only show '''foo''' at version 2, twice. |
122 | | |
123 | | Instead, use `port installed` which will show the version which is actually installed. |
| 120 | === `port list` produces unexpected output === #portlist |
| 121 | |
| 122 | `port list` doesn't work the way you think it does. You probably want `port installed` instead. If you were trying to use `port list installed`, you probably want `port installed` (or, equivalently, `port installed installed`); if you were trying to use `port list someport`, you probably want `port installed someport`. |
| 123 | |
| 124 | For every given port, `port list` displays the version of that port currently available in the ports tree -- ''not'' the version currently installed. So if for example you have port '''foo''' installed at versions 1 and 2 (with 2 being the current version available), `port list foo` will show '''foo''' at version 2, twice, whereas `port installed foo` will show '''foo''' at version 1 once and '''foo''' at version 2 once. |