Sublime 2
According to the documentation, in Sublime 2, the package directory is located under the data directory. That directory should be on these locations:
- Windows: %APPDATA%\Sublime Text 2
- OS X: ~/Library/Application Support/Sublime Text 2
- Linux: ~/.config/sublime-text-2
This information is available here (archive link).
Sublime 3
For Sublime 3, the locations are the following:
- Windows: %APPDATA%\Sublime Text 3
- OS X: ~/Library/Application Support/Sublime Text 3
- Linux: ~/.config/sublime-text-3
This information is available here (archive link).
For the portable version the documentation above states: "If you’re using the portable version (Windows only), look for Application/Data. Here, Application refers to the directory to which you’ve extracted the compressed portable files and where the executable resides.
Note that the Data directory only exists with that name in the portable version. In full installations, it is one of the locations indicated above."
Sublime 4
For Sublime 4, when cleanly installed, the locations are the following:
- Windows: %APPDATA%\Sublime Text
- OS X: ~/Library/Application Support/Sublime Text
- Linux: ~/.config/sublime-text
According to this, if Sublime 4 is installed on top of Sublime 3, it uses the ST3 directory. (archive link)
More documentation about Sublime packages here (archive link).