DEBCOINSTALL(1) | DOSE Tools | DEBCOINSTALL(1) |
dose-deb-coinstall - calculate a coinstallation set of a given set of Debian binary packages
dose-deb-coinstall determines whether a set of foreground Debian binary packages can be installed together given a set of background Debian binary packages. If a valid coinstallation set exists, than it is printed on standard output; else the application exists with exit code 1 and prints nothing.
If the --src option is given, then the associated source packages are printed on standard output instead.
Packages are split into foreground and background: only packages in the foreground are checked for coinstallability, but dependencies may be satisfied by foreground packages and by background packages. By default, all packages are in the foreground.
The binary-repositories argument is a list of filenames containing stanzas in the format of deb-control(5), separated by one blank line. For instance, the Packages files as found on a Debian mirror server, or in the directory /var/lib/apt/lists/ of a Debian system, are suitable.
The --src option requires a file containing debian source control stanzas, separated by one blank line. For instance, the Sources files as found on a Debian mirror server, or in the directory /var/lib/apt/lists/ of a Debian system, are suitable.
Exit codes 0-63 indicate a normal termination of the program, codes 64-127 indicate abnormal termination of the program (such as parse errors, I/O errors).
In case of normal program termination:
- exit code 0 indicates that a valid coinstallation set exists
- exit code 1 indicates that at no coinstallation set exists
Compute the list of binary packages needed to install all packages marked as essential:
grep-dctrl -X -FEssential yes \ /var/lib/apt/lists/ftp.fr.debian.org_debian_dists_sid_main_binary-amd64_Packages \ > essential dose-deb-coinstall --deb-native-arch=amd64 \ --bg /var/lib/apt/lists/ftp.fr.debian.org_debian_dists_sid_main_binary-amd64_Packages \ --fg essential > essential_coinstall
Compute the list of source packages needed to build these packages:
dose-deb-coinstall --deb-native-arch=amd64 \ --src /var/lib/apt/lists/ftp.fr.debian.org_debian_dists_sid_main_source_Sources \ --bg /var/lib/apt/lists/ftp.fr.debian.org_debian_dists_sid_main_binary-amd64_Packages \ --fg essential > essential_coinstall_src
The current version has been rewritten on the basis of the dose3 library by Pietro Abate.
deb-control(5), dose3-distcheck(1)
<http://www.edos-project.org> is the home page of the EDOS project. <http://www.mancoosi.org> is the home page of the Mancoosi project.
2019-01-29 |