tldr/pages/linux/distrobox-export.md

26 lines
991 B
Markdown
Raw Normal View History

# distrobox-export
> Export app/service/binary from container to host OS.
2023-03-02 16:20:46 +00:00
> Subcommand of `distrobox`. See also: `tldr distrobox`.
> More information: <https://distrobox.privatedns.org/usage/distrobox-export.html>.
2023-03-02 16:20:46 +00:00
- Export an app from the container to the host (the desktop entry/icon will show up in your host system's application list):
`distrobox-export --app {{package}} --extra-flags "--foreground"`
- Export a binary from the container to the host:
`distrobox-export --bin {{path/to/binary}} --export-path {{path/to/binary_on_host}}`
- Export a binary from the container to the host (i.e.`$HOME/.local/bin`) :
2023-03-02 16:20:46 +00:00
`distrobox-export --bin {{path/to/binary}} --export-path {{path/to/export}}`
- Export a service from the container to the host (`--sudo` will run the service as root inside the container):
2023-03-02 16:20:46 +00:00
`distrobox-export --service {{package}} --extra-flags "--allow-newer-config" --sudo`
2023-03-02 16:20:46 +00:00
- Unexport/delete an exported application:
2023-03-02 16:20:46 +00:00
`distrobox-export --app {{package}} --delete`