How install gcc with deb

Robert Heller heller at deepsoft.com
Sat Nov 17 20:21:22 UTC 2018


At Sat, 17 Nov 2018 14:53:32 -0500 (EST) Robert Heller <heller at deepsoft.com> wrote:

> 
> At Sat, 17 Nov 2018 18:12:00 +0100 "Ubuntu user technical support,  not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
> 
> > 
> > On Sat, 17 Nov 2018 15:35:24 +0100, Tom H wrote:
> > >I made the possibly wrong assumption that both computers are running
> > >18.04 :(
> > 
> > On Sat, 17 Nov 2018 09:54:28 -0500 (EST), Robert Heller wrote:
> > >If this 'Other' computer also has Ubuntu 18.04 installed on it you can
> > >do:
> > >
> > >sudo apt-get update
> > >sudo apt-get -d install gcc binutils
> > 
> > Wouldn't this require that on both machines the same Ubuntu release
> > is installed and that on both machines the same packages and packages'
> > versions are installed, thus the consequence of this a full-upgrade is
> > required instead of "-d install gcc binutils"?
> 
> See the sentence you quoted: "If this 'Other' computer also has Ubuntu 18.04 
> installed on it you can do:".  Yes, the presumption is that the networked 
> machine is running the same release as the non-networked machine.

Further, if one keeps the /var/cache/apt/archives and /var/lib/apt/lists/
directories sync'ed (eg rsync'ed via a sneakerneted thumb drive), then it is
possible to keep both machines sync'ed in terms on overall package versions.
As I said elsewhere, it is a sort of "poor man's" local mirror.

> 
> > 
> > IOW on the Internet machine run
> > 
> >   sudo apt update
> >   sudo apt full-upgrade
> > 
> > or just in case even
> >   
> >   sudo apt -o APT::Keep-Downloaded-Packages=1 full-upgrade
> > 
> >   sudo cp -ai /var/cache/apt/archives/* /path/to/thumbdrive/
> > 
> > and on the other machine
> > 
> >   sudo apt install /path/to/thumbdrive/*
> > 
> > ?
> > 
> > 
> 

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                                                                   



More information about the ubuntu-users mailing list