NAME
debpartial - Debian Packages/Sources file partition tool
SYNOPSIS
debpartial [options] <source> <dest>
DESCRIPTION
debpartial is a program to separate Packages.gz and Sources.gz files by size of packages and sources. You can create partial debian archives easily by using this program. For example, this is useful in the case of:
- 1.
-
creating 1 DVD/CD Debian (including binaries and sources).
- 2.
-
separating the debian archive into several harddisks.
- 3.
-
mirroring packages only you want (using debmirror etc).
USAGE
debpartial [--help] [--nosource] [--size=num[,num,..] ...]
[--dist=foo[,bar,..] ...] [--section=foo[,bar,..] ...]
[--include=foo[,bar..] ...] [--include-from=foo]
[--dirmap=foo[,bar,..] ...] [--limit=num] [--merge-source]
[--arch=foo[,bar,..] ...] [--ignore-large-packages] <source> <dest>
OPTIONS
-
• --help Print usage summary of this program.
-
• --nosource Don't handle source files.
-
• --size=num[,num..] ... -S Specify the comma separated partition size list. May use absolute integer value and/or MediaType. see MEDIATYPE Section for more info (Default: CD74).
-
• --srcsize=num[,num..] ... -R Specify the comma separated source partition size list. May use absolute integer value and/or MediaType. If this option is not given, then --size is also used for source patitions.
-
• --dist=foo[,bar,..] ...] -d Specify the comma separated distribution list to handle (Default: unstable).
-
• --section=foo[,bar,..] ...] -s Specify the comma separated section list to handle (Default: main,contrib,non-free).
-
• --arch=foo[,bar,..] ...] -a Specify the comma separatd arch list to handle (Default: i386).
-
• --include=foo[,bar..] ...] -i Specify the comma separated package list to handle. The packages listed in this option are treated earlier than one by --include-from.
-
• --include-from=file Specify the file which lists package names to handle. If this option is given, packages not listed in the file are excluded. Packages listed in the file are treated as in-order.
-
• --dirmap=foo[,bar,..] ...] -D Create the map from each patition to name (i.e. patition 0 will be named foo, and partition 1 will be named bar)
(Default: <prefix>0,<prefix>1,<prefix>2,....)
-
• --dirprefix=foo Specify the prefix of all partition (Default: Debian).
-
• --dirsrcprefix=foo Specify the prefix of all src partition (Default: Debian-Src). If --merge-source is given, this arguments will be ignored.
-
• --limit=num -l Specify the maximum number of partitions. 0 means no-limit (Default: 0).
-
• --merge-source -m Merging source files and packages in the same partition.
-
• --ignore-large-packages -I Ignoring packages which are larger than partition size. If this option is not given, debpartial exits with error for a large package.
MEDIATYPE
MediaType is alias of an absolute integer value for a media such as CD, DVD. For example, CD74 MediaType is an alias of the absolute size of 74min CD. debpartial has the following built-in MediaTypes:
- 1.
-
FD - 2HD 1.44M Floppy Disk
- 2.
-
CF8 - 8M Compact Flash
- 3.
-
CF16 - 16M Compact Flash
- 4.
-
CF32 - 32M Compact Flash
- 5.
-
CF64 - 64M Compact Flash
- 6.
-
MO128 - 128M MO
- 7.
-
MO230 - 230M MO
- 8.
-
MO640 - 640M MO
- 9.
-
CD74 - 74min (650M) CD
- 10.
-
CD80 - 80min (700M) CD
- 11.
-
MO1.3G - 1.3G MO
- 12.
-
DVD-RAM - (2.6G) DVD-RAM
- 13.
-
DVD - Single Layer (4.7G) DVD-ROM
Each absolute value is 93% of theoretical value because fixed cluster (or block) size may make the space of written files grow up. This calculation isn't a perfect solution, but mostly works.
EXAMPLE
debpartial --dist=unstable,testing --section=main --limit 1 \
--size=400000000 --merge-source --arch=i386,sparc \
/home/ftp/pub/debian/ /home/ftp/pub/debpartial/
BUGS
- 1.
-
debpartial doesn't consider about disk cluster size and also the size of generated Packages/Sources.gz.
AUTHOR
debpartial was written by Masato Taruishi.