How install gcc with deb

Tom H tomh0665 at
Sat Nov 17 13:45:00 UTC 2018

On Sat, Nov 17, 2018 at 2:19 PM Caipenghui <Caipenghui_c at> wrote:
> My computer is loaded with ubuntu18.04 LTS, but my computer is not
> connected to the Internet, so I can't install GCC online. So I have a
> network in another computer from
> download deb into
> the u disk to install on my Ubuntu 18.04.
> What's the use of deb? How does deb install GCC?I know that deb can't
> solve the dependency problem, what can we do?

I assume that you mean dpkg and not deb.

You can run "apt-get -d install gcc" to download the gcc deb and those
of its dependencies, copy them to the non-networked (!) computer, and
install them with "dpkg -i ...".

More information about the ubuntu-users mailing list