Cách dùng: apt-ftparchive [tùy_chọn...] lệnh
![](/@@/translation-newline)
[ftparchive: FTP archive: kho FTP]
![](/@@/translation-newline)
Lệnh: packages binarypath [tập_tin_đè [tiền_tố_đường_dẫn]]
sources srcpath [tập_tin_đè[tiền_tố_đường_dẫn]]
contents path
release path
generate config [các_nhóm]
clean config
![](/@@/translation-newline)
(packages: những gói;
![](/@@/translation-newline)
binarypath: đường dẫn nhị phân;
![](/@@/translation-newline)
sources: những nguồn;
![](/@@/translation-newline)
srcpath: đường dẫn nguồn;
![](/@@/translation-newline)
contents path: đường dẫn nội dung;
![](/@@/translation-newline)
release path: đường dẫn bản đã phát hành;
![](/@@/translation-newline)
generate config [groups]: tạo ra cấu hình [các nhóm];
![](/@@/translation-newline)
clean config: cấu hình toàn mới)
![](/@@/translation-newline)
apt-ftparchive (kho ftp) thì tạo ra tập tin chỉ mục cho kho Debian.
![](/@@/translation-newline)
Nó hỗ trợ nhiều cách tạo ra, từ cách tự động hoàn toàn
![](/@@/translation-newline)
đến cách thay thế hàm cho dpkg-scanpackages (dpkg-quét_gói)
![](/@@/translation-newline)
và dpkg-scansources (dpkg-quét_nguồn).
![](/@@/translation-newline)
apt-ftparchive tạo ra tập tin Gói ra cây các .deb.
![](/@@/translation-newline)
Tập tin gói chứa nội dung các trường điều khiển từ mỗi gói,
![](/@@/translation-newline)
cùng với băm MD5 và kích cỡ tập tin.
![](/@@/translation-newline)
Hỗ trợ tập tin đè để buộc giá trị Ưu tiên và Phần
![](/@@/translation-newline)
Tương tự, apt-ftparchive tạo ra tập tin Nguồn ra cây các .dsc
![](/@@/translation-newline)
Có thể sử dụng tùy chọn “--source-override” (đè nguồn)
![](/@@/translation-newline)
để ghi rõ tập tin đè nguồn
![](/@@/translation-newline)
Lệnh “packages” (gói) và “sources” (nguồn) nên chạy tại gốc cây.
![](/@@/translation-newline)
BinaryPath (đường dẫn nhị phân) nên chỉ tới cơ bản của việc tìm kiếm đệ quy,
![](/@@/translation-newline)
và tập tin đè nên chứa những cờ đè.
![](/@@/translation-newline)
Pathprefix (tiền tố đường dẫn) được phụ thêm vào
![](/@@/translation-newline)
những trường tên tập tin nếu có.
![](/@@/translation-newline)
Cách sử dụng thí dụ từ kho Debian:
apt-ftparchive packages dists/potato/main/binary-i386/ > \
dists/potato/main/binary-i386/Packages
![](/@@/translation-newline)
Tùy chọn:
-h _Trợ giúp_ này
--md5 Điều khiển cách tạo ra MD5
-s=? Tập tin đè nguồn
-q _Im lặng_ (không xuất chi tiết)
-d=? Chọn _cơ sở dữ liệu_ nhớ tạm tùy chọn
--no-delink Mở chế độ gỡ lỗi _bỏ liên kết_
--contents Điều khiển cách tạo ra tập tin _nội dung_
-c=? Đọc tập tin cấu hình này
-o=? Đặt một tùy chọn cấu hình tùy ý, v.d. “-o dir::cache=/tmp”