← 返回命令列表

Linux command

apt-ftparchive 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Generate

apt-ftparchive packages [pool/] > [Packages]

Example

apt-ftparchive sources [pool/] > [Sources]

Example

apt-ftparchive release [dists/stable] > [Release]

Example

apt-ftparchive generate [config.conf]

说明

apt-ftparchive generates index files for APT repositories. It creates Packages, Sources, Contents, and Release files from a directory of .deb and .dsc files. This tool is essential for creating and maintaining local APT repositories or mirrors.

参数

packages _dir_
Generate Packages file from directory
sources _dir_
Generate Sources file
contents _dir_
Generate Contents file
release _dir_
Generate Release file
generate _config_
Generate files per configuration
clean _config_
Clean up database files
-c _file_
Configuration file
-d _db_
Database directory
--md5, --sha1, --sha256, --sha512
Hash algorithms to generate

FAQ

What is the apt-ftparchive command used for?

apt-ftparchive generates index files for APT repositories. It creates Packages, Sources, Contents, and Release files from a directory of .deb and .dsc files. This tool is essential for creating and maintaining local APT repositories or mirrors.

How do I run a basic apt-ftparchive example?

Run `apt-ftparchive packages [pool/] > [Packages]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does packages _dir_ do in apt-ftparchive?

Generate Packages file from directory