Uso: apt-ftparchive [opções] comando
Comandos: packages caminho_binário [arquivo_override [prefixo_caminho]]
sources caminho_fonte [arquivo_override [prefixo_caminho]]
contents caminho
release caminho
generate config [grupos]
clean config
O apt-ftparchive gera arquivos de índice para repositórios Debian. Ele
dá suporte a muitos estilos de geração, desde totalmente automatizadas até
substitutos funcionais para o dpkg-scanpackages e o dpkg-scansources
O apt-ftparchive gera arquivos Package a partir de uma árvore de .debs.
O arquivo Package contém o conteúdo de todos os campos controle de
cada pacote bem como o hash MD5 e o tamanho do arquivo. Há suporte para
um arquivo override para forçar o valor da prioridade ("Priority") e a
a seção ("Section").
Similarmente, o apt-ftparchive gera arquivos Sources a partir de uma
árvore de .dscs. A opção --source-override pode ser usada para
especificar um arquivo override de fontes.
Os comandos 'packages' e 'sources' deverão ser executados na raiz da
árvore. Caminho_Binário deverá apontar para a base de procura recursiva
e o arquivo override deverá conter as "flags override". Caminho_Prefixo é
anexado aos campos do nome do arquivo se estiverem presentes. Exemplo de
uso do repositório Debian:
apt-ftparchive packages dists/potato/main/binary-i386/ > \
dists/potato/main/binary-i386/Packages
Opções:
-h Este texto de ajuda
--md5 Controla a geração de MD5
-s=? Arquivo fonte ("source") override
-q Quieto
-d=? Seleciona o banco de dados de caching opcional
--no-delink Habilita o modo de depuração "delinking"
--contents Controla a geração do arquivo de conteúdo
-c=? Lê o arquivo de configuração especificado.
-o=? Define uma opção de configuração arbitrária