Test Debian Package Dependencies
This section describes Debian package dependency tests.
-
sudo apt-get install
based installation:This test can only be done on the target system, as
sudo apt-get install
does not support install directories (besides root).From the target system, run
sudo apt-get install nvidia-driveos_<DRIVEOS_RELEASE>.deb
. Check that all Debian packages are installed withdpkg –list
. -
sudo apt-get remove nvidia-driveos
uninstalls all packages.Verify that all Debian packages were uninstalled with
dpkg –list
. -
sudo dpkg –install
based installation:This test can run on the host system in "fake" root environment.
Verify that the installation fails if the dependent Debian packages are missing:
-
Install
nvidia-driveos_<DRIVEOS_RELEASE>.deb.
sudo dpkg --force-architecture --admindir= $test_base_dir/fakeroot/var/lib/dpkg --instdir= $test_base_dir/package-name_root/ --force-depends --install absolute_path_of_debian_package
The dpkg returns with an error, listing any modules that must be installed first (in this case, all other Debian packages).
-
Install all remaining Debian packages
Install nvidia-driveos_<DRIVEOS_RELEASE>.deb.
-
The installation passes.