- cd /home/demo/debs
- apt-ftparchive packages . >Packages
- apt-ftparchive release . > Release
- deb [trusted=yes] file:/home/demo/debs ./
参考:https://wiki.debian.org/DebianRepository/Setup#Quick_instructions_to_create_a_trivial_local_archive_with_apt-ftparchive