I have a Windows machine with internet and an Ubuntu 16.04 machine without an internet connection, and I need build-essentials to compile some of my code. I've read about it online, but I'm having trouble finding a documented way of doing this. What are my options for installing build-essentials offline?
Asked
Active
Viewed 5,886 times
1 Answers
3
In your Ubuntu machine run:
apt-get install build-essential --print-uris -y | grep -Po "http.*?deb"
it gives you a list of links to deb package (build-essential and its dependecies).
Download them using Windows and finally move them into:
/var/cache/apt/archive
then again run:
sudo apt install build-essential
to install it.
Ravexina
- 57,256