APT Package Management

This documentation is for Dash Enterprise.
Dash Enterprise is the fastest way to write & deploy Dash apps and
Jupyter notebooks.
10% of the Fortune 500 uses Dash Enterprise to productionize AI and
data science apps. Find out if your company is using Dash Enterprise.

To install APT packages in your workspace, you can either install them in the workspace’s terminal, or add the required packages to an Aptfile.

If Dash Enterprise is internet-restricted, only the Aptfile approach will work, and you need to specify a custom APT repository that Dash Enterprise has network access to in the Aptfile. See an example in
Developing Apps when Dash Enterprise Is Internet-Restricted.

Installing in the Workspace Terminal

Install the package in your terminal with

$ sudo apt-get update
$ sudo apt-get install <package>

Adding to an Aptfile

Add the package to Aptfile in your workspace and rebuild.

By adding the APT packages to install to an Aptfile and deploying those changes to your app, you can ensure both your workspace and app are running with the same APT packages.

Refer to App Structure, Buildpacks, and Deployment Lifecycle for more details on Aptfile.