Package Management
You can use the ActiveState Platform UI and the State Tool to:
- Install and delete packages
- Change package and language versions
- Import packages from a requirements file (link to article).
- View any security changes that may result from your new configuration in a package management (CVE) report (link to article).
Package management with the Platform
You can install, uninstall, and edit specific packages from your project using the Platform.
- Go to your Projects tab.
- Select the project with the packages you wish to configure.
- In the Configuration tab of the project:
- To add a package, click the Add Packages button and search for the needed package before clicking Finish & Resolve Dependencies to save.
- To delete an installed package click the trash bin icon next to the package name.
- To find a different version of the package use the drop-down menu next to the package name to select the appropriate package and wait for the dependencies to be resolved.
- To change the language version, go to your project’s Configuration tab, locate the Languages section at the top of the page, click the Edit button, and make your changes.
- To configure the operating system go to your project’s Configuration tab, locate the Platforms section at the left of the page, click the Change button, and make your changes.
- After your newly configured runtime has been built and you have clicked Save Changes, you can update your project on your local machine by running the
state pullcommand in the State Tool.
You can also import packages by uploading them from a requirements file. Details on installing packages from requirements files can be found here.
As you manage the packages in your runtime, the addition of new packages or changing the version of existing packages may present new security issues. These changes will be captured in the updated security report. To find out how to view these changes, see the documentation explaining our security reports here.
Package management using the State Tool
Managing your packages can be done using only the State Tool. Additional help with the State Tool can be found on the State Tool Cheat Sheet, reviewing the State Tool Command Reference, or by entering state learn into the command line.
Search for a package
state search <name of package>
For example state search pandas. This will search our Platform catalog for packages that match the search term (text within the angle brackets). The search is case-insensitive.
Install a package
state install <package>
While the search function is case insensitive, the install function is not, so be sure to enter the name of your package exactly as it appears in the search response. Installing a new package may require some dependencies to be rebuilt.
Remove a package
state uninstall <package>
Removing a package may require some dependencies to be restored and/or rebuilt. After removal, the package will no longer be present in your local project, and running state push will sync your settings with the Platform.