How install gcc with deb

Tom H tomh0665 at
Sat Nov 17 14:35:24 UTC 2018

On Sat, Nov 17, 2018 at 3:05 PM Ralf Mardorf via ubuntu-users
<ubuntu-users at> wrote:
> On Sat, 2018-11-17 at 14:45 +0100, Tom H wrote:
>> 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 ...".
> This could do the job, since Ubuntu is a release model distro, but it
> still is risky, since even for a release model distro other packages
> that aren't part of the gcc dependency chain, might be dependent on
> something from this chain and might need an upgrade, too.

I made the possibly wrong assumption that both computers are running 18.04 :(

More information about the ubuntu-users mailing list