#debian #offline #apt #debian-package

app aoit

Apt offline installation tool (support Debian family distribution only)

4 releases

new 0.1.9 Sep 19, 2024
0.1.8 Sep 19, 2024
0.1.7 Sep 18, 2024
0.1.6 Sep 14, 2024

#239 in Command line utilities

Download history 136/week @ 2024-09-10

136 downloads per month

GPL-3.0-only

24KB
316 lines

aoit-rs

Apt offline installation tool (support Debian family distribution only).

Rust

Requirements

  • Two servers, one can be networked called A, one can not be networked called B.
  • A server with the same architecture and the same distribution as the B server, and with a good network.
  • Both servers must have sufficient hard disk space.

Installtion

from cargo install

Install rust first from here, then

cargo install aoit

from release

or just download from release page.

If you need software for other arch, try cargo install below or cargo build by yourself.

Usage

In A server, pack all the dependencies of a package

We use vim package as example.

Create a work folder.

root@debian:~# mkdir test
root@debian:~# cp aoit test/
root@debian:~# cd test

Start packing.

root@debian:~/test# ./aoit --pack vim

These three files will appear in the directory.

root@debian:~/test# ls
aoit  vim.aoit  vim.aoit.sha256

Do not change any files, including naming and content, and make sure all three files are copied to a USB or CD.

In B server, offline installation of vim

Check for the presence of these three files.

root@debian:~/test# ls
aoit  vim.aoit  vim.aoit.sha256

Start offline installation.

root@debian:~/test# ./aoit --install vim.aoit

Fixing apt dependencies

apt install -f

If this process does not have any error messages, the installation is successful and you can now use the offline installed vim.

Dependencies

~4–12MB
~143K SLoC