How do I install 'Make' without internet connection?

Solution 1:

You can ask apt-get for the packages that will be installed like this:

sudo apt-get --print-uris install make | cut -d"'" -f2 | grep http > /tmp/packages.list

Then you copy that file and, on another computer you do:

wget -i packages.list

Then you move the .deb packages you just downloaded to /var/cache/apt/archives on the unconnected computer.

And run:

sudo apt-get install make

That should do it.

Solution 2:

First, download the packages listed below

http://archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_4.1-9.1ubuntu1_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.27-3ubuntu1_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/libgcc1_8-20180414-1ubuntu2_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/gcc-8-base_8-20180414-1ubuntu2_amd64.deb

make requires libc6, libc6 requires libgcc1, libgcc1 requires gcc-8-base.

Copy these packages to a folder and transfer it to the pc on which they are to be installed.

Now, open a terminal into that folder and type the command

sudo dpkg -i *