.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "APT-CUDF 1" .TH APT-CUDF 1 2024-04-09 " " "DOSE Tools" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME apt\-cudf \- CUDF solver integration for APT .SH SYNOPSIS .IX Header "SYNOPSIS" .IP \fBsolvername\fR 4 .IX Item "solvername" .SH DESCRIPTION .IX Header "DESCRIPTION" apt-cudf translates back and forth among a CUDF-based dependency solver and the protocol used by APT to talk with external dependency solvers. apt-cudf therefore allows one to use any CUDF solver as an external solver for APT. .PP apt-cudf relies on its \f(CW\*(C`argv[0]\*(C'\fR name to find the CUDF solver to invoke. In common setups, you should have a CUDF solver specification file under \&\fI/usr/share/cudf/solvers/\fR for each installed CUDF solver. To use one such solver with APT, you should create a symbolic link pointing to \&\fI/usr/bin/apt\-cudf\fR under \fI/usr/lib/apt/solvers/\fR and call it with the name of the CUDF solver you want to use. .SH OPTIONS .IX Header "OPTIONS" .IP \-v 4 .IX Item "-v" .PD 0 .IP \-\-verbose 4 .IX Item "--verbose" .PD Print debugging information during operation. Can be repeated. .IP \-h 4 .IX Item "-h" .PD 0 .IP \-\-help 4 .IX Item "--help" .PD Show usage information and exit. .IP \-\-version 4 .IX Item "--version" Show program's version and exit. .IP \-\-dump 4 .IX Item "--dump" Dump the cudf universe and solution .IP \-\-noop 4 .IX Item "--noop" Dump the cudf universe and solution and exit. This is useful to generate a cudf universe from a edsp file .IP \-\-conf 4 .IX Item "--conf" Use a configuration file. Default in /etc/apt\-cudf.conf .IP "\-s " 4 .IX Item "-s " .PD 0 .IP "\-\-solver " 4 .IX Item "--solver " .PD Specify the external solver to use. .IP "\-c " 4 .IX Item "-c " .PD 0 .IP "\-\-criteria " 4 .IX Item "--criteria " .PD Specify the optimization criteria in extended MISC 2012 syntax. This value will be converted into the optimization criteria language understood by the respective solver. .Sp As an extension to the MISC 2012 syntax, a variation of the \fBcount()\fR measurement is supported by apt-cudf. The extension allows one to minimize or maximize the number of packages in a set that have an EDSP field matching a regular expression. Two formats exist. The first searches for a plain string within the EDSP field value: .Sp .Vb 1 \& count(selector,field:=/plain/) .Ve .Sp While the second one understands the regular expression syntax of the OCaml Re_pcre module: .Sp .Vb 1 \& count(selector,field:~/regex/) .Ve .Sp The regex or plain string are delimitered by any character (the slash was chosen in both above examples) but that character must not be part of the regex or plain string itself (there is no escaping mechanism). .Sp This option cannot be used together with the \fB\-\-criteria\-plain\fR option. .IP "\-\-criteria\-plain " 4 .IX Item "--criteria-plain " This optimization criteria is passed directly to the solver without any prior parsing. .Sp This option cannot be used together with the \fB\-\-criteria\fR option. .IP \-e 4 .IX Item "-e" .PD 0 .IP \-\-explain 4 .IX Item "--explain" .PD Print a human-readable summary of the solution. .IP \-\-native\-arch 4 .IX Item "--native-arch" Specify the native architecture to be used in the edsp \-> cudf translation. By default apt-cudf uses apt-config to deduce the native architecture. This option is useful if the edsp was generated on a machine with a different architecture. .IP \-\-foreign\-archs 4 .IX Item "--foreign-archs" A comma-separated list of foreign architectures to be used in the edsp \-> cudf translation .SH EXAMPLES .IX Header "EXAMPLES" Find a solution for installing the package ghc which minimizes the packages from experimental: .PP .Vb 2 \& APT_EDSP_DUMP_FILENAME=/tmp/dump.edsp apt\-get \-\-simulate install \-\-solver dump \-o APT::Solver::Strict\-Pinning=false ghc \& apt\-cudf \-v \-\-solver=aspcud \-c "\-count(solution,APT\-Release:=/a=experimental/),\-removed,\-changed,\-new" /tmp/dump.edsp .Ve .PP Usually apt-cudf is not called directly by the user but indirectly by apt-get. So the above would become: .PP .Vb 1 \& apt\-get \-\-simulate install \-\-solver aspcud \-o APT::Solver::Strict\-Pinning=false \-o APT::Solver::aspcud::Preferences="\-count(solution,APT\-Release:=/a=experimental/),\-removed,\-changed,\-new" ghc/experimental .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBapt\-get\fR\|(8), \fBupdate\-cudf\-solvers\fR\|(8), README.cudf\-solvers , README.Debian .SH AUTHOR .IX Header "AUTHOR" Copyright: (C) 2011 Pietro Abate Copyright: (C) 2011 Stefano Zacchiroli .PP License: GNU Lesser General Public License (GPL), version 3 or above