Shims¶
Shims are lightweight executable files used by the Scoop package manager to make command-line applications available in the user's path.^[400-devops-02-os-and-linux-basics-windows-scoop.md]
Overview¶
When Scoop installs applications, it creates a shim for each program to facilitate execution without requiring the user to modify their system's PATH environment variable manually.^[400-devops-02-os-and-linux-basics-windows-scoop.md]
Creation Process¶
During the installation of Scoop itself, the setup script automatically creates a shims directory and adds it to the user's path.^[400-devops-02-os-and-linux-basics-windows-scoop.md] This is indicated by the log output "Adding ~\scoop\shims to your path" and the explicit creation of a shim during initialization.^[400-devops-02-os-and-linux-basics-windows-scoop.md]
Application Management¶
Shims act as pointers that allow the system to locate the actual application executables. When managing different versions of software, Scoop updates these shims. For example, when switching Java versions, the system performs a "reset" operation which relinks the shim to point to the specific target directory (e.g., linking ~\scoop\apps\openjdk11\current to the specific version folder).^[400-devops-02-os-and-linux-basics-windows-scoop.md]
Related Concepts¶
- Scoop
- [[PATH (Environment Variable)]]
- [[Symbolic Links]]
Sources¶
^[400-devops-02-os-and-linux-basics-windows-scoop.md]