this time it's docker, was: removing wslview from Ubuntu-only computers?

Keith keithw at caramail.com
Mon Apr 10 20:49:28 UTC 2023


On 4/10/23 2:58 PM, Marco Fioretti wrote:
> On Mon, Apr 10, 2023 at 21:24, Keith <keithw at caramail.com> wrote:
> 
> 
>     If you'd like to see what apt/apt-get will do without making changes to
>     the system, use the "-s" (for simulate) option with the action command
> 
>     $ sudo apt -s install docker.io
> 
>     Examine the output and if it looks ok with nothing being installed that
>     you don't expect to be installed, then remove the "-s" and run the
>     command again.
> 
> 
> hi Keith, and thanks for the prompt answer.
> 
> I know about those apt options, but they would not answer enough my 
> concerns.
> 
> First, because that apt -s commands yelds 31 lines of output, and if I knew
> what on Earth all thoseĀ  package do and interact, I wouldn't need this 
> thread
> in the first place.

Well, the only lines you need to pay attention to in that output are 
these 3: (from my machine when running the apt -s install docker.io command)

The following NEW packages will be installed:
   bridge-utils containerd docker.io git git-man liberror-perl pigz runc 
ubuntu-fan
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.

Your output may be a little different, but you just want to know what 
new packages are going to be installed. You can use "apt show 
<packagename> find out what they do.

You could always add "--no-install-recommends" to the command to reduce 
the number of packages that will be pulled in, particularly ones that 
you won't utilize. As you may already know, packages with Recommends: 
dependencies are installed by default. Adding the above option should 
cut down the number a bit.

On my system simulating installing docker.io with this command

$ sudo apt -s install --no-install-recommends docker.io

dropped the number of packages pulled in from 9 to 3.

The following NEW packages will be installed:
   containerd docker.io runc
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.

So what will be installed is docker.io plus two other packages that it 
has a direct dependencies on. Your output might be slightly different 
depending on what's already installed/not installed on your system.

Honestly, I wouldn't worry about the last wslu thing. That's a fairly 
rare problem that's unlikely to come up again. If it does its easy 
enough to workaround.

-- 
Keith






More information about the ubuntu-users mailing list