Apt offline installation tool (support Debian family distribution only).
- Two servers, one can be networked called A, one can not be networked called B.
- A server with the same
architectureand the samedistributionas the B server, and with a good network. - Both servers must have sufficient hard disk space.
Install rust first from here, then
cargo install aoitor just download from release page.
If you need software for other arch, try cargo install below or cargo build by yourself.
We use vim package as example.
Create a work folder.
root@debian:~# mkdir test
root@debian:~# cp aoit test/
root@debian:~# cd testStart packing.
root@debian:~/test# ./aoit --pack vimThese three files will appear in the directory.
root@debian:~/test# ls
aoit vim.aoit vim.aoit.sha256Do not change any files, including naming and content, and make sure all three files are copied to a USB or CD.
Check for the presence of these three files.
root@debian:~/test# ls
aoit vim.aoit vim.aoit.sha256Start offline installation.
root@debian:~/test# ./aoit --install vim.aoitFixing apt dependencies
apt install -fIf this process does not have any error messages, the installation is successful and you can now use the offline installed vim.