Uso: apt-ftparchive [opciones] orden
Comandos: packages ruta-binaria [archivo-predominio
[prefijo-ruta]]
sources ruta-fuente [archivo-predominio
[prefijo-ruta]]
contents ruta
release ruta
generate config [grupos]
clean config
apt-ftparchive genera índices para archivos de Debian. Soporta
varios estilos de generación de reemplazos desde los completamente
automatizados a los funcionales para dpkg-scanpackages y dpkg-scansources.
apt-ftparchive genera ficheros Package de un árbol de .debs. El fichero
Package contiene los contenidos de todos los campos de control de cada
paquete al igual que la suma MD5 y el tamaño del archivo. Se puede usar
un archivo de predominio para forzar el valor de Priority y
Section.
Igualmente, apt-ftparchive genera ficheros Sources para un árbol de
.dscs. Se puede utilizar la opción --source-override para especificar un
fichero de predominio de fuente.
Las órdenes «packages» y «sources» deben ejecutarse en la raíz del
árbol. BinaryPath debe apuntar a la base de la búsqueda
recursiva, y el archivo de predominio debe de contener banderas de
predominio. Se añade Pathprefix a los campos de nombre de fichero
si existen. A continuación se muestra un ejemplo de uso basado en los
archivos de Debian:
apt-ftparchive packages dists/potato/main/binary-i386/ > \\
dists/potato/main/binary-i386/Packages
Opciones:
-h Este texto de ayuda
--md5 Generación de control MD5
-s=? Archivo fuente de predominio
-q Silencioso
-d=? Selecciona la base de datos de caché opcional
--no-delink Habilita modo de depuración delink
--contents Generación del contenido del archivo «Control»
-c=? Lee este archivo de configuración
-o=? Establece una opción de configuración arbitraria