I am trying to write a script that prepare an offline installable custom ISO. The customized ISO should have include some other packages which do not come with the official Ubuntu server ISO. (like samba, ifupdown, tcpdump etc.). As far as I observe Ubuntu ISOs have compatible directory structure of packages with the repo.
So I wonder if it is possible to download a package with dependencies (even if they are installed already). And place them ISO directory.
for example ifupdown has a directory in the repo as follows:
http://ddebs.ubuntu.com/pool/main/i/ifupdown/
before assembling the custom ISO, after downloading and placing it should be my local directory as follows:
/iso-disk/pool/main/i/ifupdown/ifupdown_0.8.36+nmu1ubuntu3.1_amd64.deb
Secondly, let's assume somehow I put packages in to correct locations and add package names into packages:
section of user-data
file. Would cloud-init install my packages?
Thanks.
--print-uris
option - see for example How can I get all the URL of the dependencies of a deb package?--reinstall
option?--installroot --downloadonly --downloaddir
. Since Centos7 packages arent divided by wrt prefixes, I didnt have to worry