aka how to make a stupid mirror
-
get aptly (https://aur.archlinux.org/aptly.git)
-
get the ubuntu-archive-keyring. can use any ssl mirror.
curl -OJL https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu/project/ubuntu-archive-keyring.gpg.sig
gpg2 *.sig
#curl -OJL https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu/project/ubuntu-archive-keyring.gpg
- this nonsense
gpg2 --no-default-keyring --keyring ./ubuntu-archive-keyring.gpg --export | gpg --no-default-keyring --keyring trustedkeys.gpg --import
aptly mirror create x http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
aptly mirror edit -architectures="amd64" x
aptly mirror edit -filter-with-deps=true -filter=PACKAGENAME
aptly mirror edit -keyring=./trustedkeys.gpg
aptly mirror update
aptly snapshot create z from mirror y
aptly publish snapshot z
rsync --recursive --safe-links --munge-links --executability --no-owner --progress --partial ~/.aptly/public /media/usb
- cry