Tart
Tart is a program that takes care of thinning, i.e. spreading a distribution over different (numbered) media (CDs, DVDs, etc) so that every package on the distribution can be installed using only the medium it is on and preceeding media. For example, all packages on CD 1 can be installed using only the packages from CD 1, all packages on CD 2 can be installed using only the packages from CDs 1 and 2, and so forth.Running Tart
The easiest way to generate the CNF (conjunctive normal form) files from repositories is using Ceve (q.v.). There is a script called script-002.sh in the dose2/tart/example directory that automates the procedure (there are some variables at the top of the script that you probably have to adjust to your system, such as paths); basically, it does the following:- Use Ceve to create a CNF file (deps.tart) from a repository;
- Use Ceve to create a list of packages (sizes.tart) in that repository with their sizes;
- Use deb/rpmcheck to find the list of broken packages and eliminate them from deps.tart
tart.opt -cost sizes.tart -thin 4.4e9,4.4e9,4.4e9 -human deps.tart > disks.tart
Utility
It is also possible to assign a 'utility number' to packages. This allows you to specify that certain packages should be put on lower-numbered media by preference (for example, if the kernel should be put on the first CD/DVD of a distribution.) If a utility file is given, the solver will try to optimize its solution so that packages with high utility numbers are put on low-numbered media. In order to do this, one can create a utility file, which has more or less the same forat as the sizes.tart file: every line should contain first a package name in pkglab format, and then a utility number (an integer). For example:mozilla-thunderbird-eu'1.5.0.7-1mdv2007.0@i586 42 mozilla-thunderbird-es'1.5.0.7-1mdv2007.0@i586 3 sbiload'1.0.12-2mdv2007.0@i586 15
tart.opt -cost sizes.tart -utility utility.tart -thin 4.4e9,4.4e9,4.4e9 -human deps.tart > disks.tart
Compiling Tart
Tart is part of Dose, which is in the EDOS SVN at https://protactinium.pps.jussieu.fr:12345/svn/edos/software/dependencies/dose2. In the dose2 directory, you can run:make tart
Version 1.9 last modified by slauriere on 09/09/2007 at 18:47
Document data
Attachments:
No attachments for this document
Comments: 0