# PackageManager.install_url
URL: https://lsd.tools/docs/api-package-manager-install-url
Updated: 2026-07-17

## Parameters

| name | type | default | description |
|---|---|---|---|
| `url` | `str` | — | an `http(s)` `.zip` / `.lsdpkg` archive URL, or a GitHub repository URL |

## Example

```python
from lsdtools.advanced import PackageManager

pm = PackageManager()
pm.install_url("https://github.com/acme/lsd-views")   # a repo
pm.install_url("https://example.com/mim.zip")           # a direct archive
```

## Notes

Only `http://` / `https://` URLs are accepted. A plain GitHub *repo* URL is expanded to its
default-branch source archive (both `main` and `master` are tried); a URL that is already an
archive, release, or raw link is fetched verbatim. The download goes to a temp file and is then
passed to [`install`](/docs/api-package-manager-install), so the same directory/zip/lsdpkg rules
apply. Returns `None` on a network error or if nothing installable is found.

## See also

**API:** [install](/docs/api-package-manager-install) · [add_local](/docs/api-package-manager-add-local) · [remove](/docs/api-package-manager-remove)

**Guides:** [Install from the store](/docs/pkg-store-install) · [The Package Manager](/docs/pkg-manager)
