Debian package scanning is supported provided that the following are met:
- Running on a Debian operating system.
apt-cache
is available.- Premium fossa subscription to leverage the archive uploader.
Note: There is no automatic discovery for Debian packages as this would cause unexpected behavior for users not interested in Debian scanning and too much information for those who are.
Add a module with type: debian
target
set to the name of the debian dependency that is to be analyzed, and path
is optional.
analyze:
modules:
- name: fossa
type: debian
target: apt
* path: .
Analyzing a debian package is straightforward and leverages the archive uploader in order to fully scan all licenses. Determining a dependency graph happens in these steps:
- Find all transitive dependencies for the
target
package by runningapt-cache depends --recurse <target>
. - Upload all dependencies that are found to exist and store their locator information.
- Construct a dependency graph by running
apt-cache depends <target>
on each dependency found in the previous step.