Skip to content

Conversation

shvmm
Copy link

@shvmm shvmm commented Oct 1, 2025

Description

With the current bash for loop, apt-get would run six times.
Output on my debian trixie machine:

shvm@radxa-cubie-a5e:~$ for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
[sudo] password for shvm:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'docker.io' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'docker-doc' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'docker-compose' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'podman-docker' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'containerd' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'runc' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Output after the change:

shvm@radxa-cubie-a5e:~$ sudo apt remove docker.io docker-doc docker-compose podman-docker containerd runc
Package 'docker.io' is not installed, so not removed
Package 'docker-doc' is not installed, so not removed
Package 'docker-compose' is not installed, so not removed
Package 'podman-docker' is not installed, so not removed
Package 'containerd' is not installed, so not removed
Package 'runc' is not installed, so not removed
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

Related issues or tickets

Reviews

  • Technical review
  • Editorial review
  • Product review

consolidated conflicting package names to eliminate unnecessary apt-get runs
@shvmm shvmm requested a review from usha-mandya as a code owner October 1, 2025 11:44
Copy link

netlify bot commented Oct 1, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 5fbff3f
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/68dd143df6b024000872d457
😎 Deploy Preview https://deploy-preview-23482--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added area/engine Issue affects Docker engine/daemon area/install Relates to installing a product labels Oct 1, 2025
@shvmm shvmm changed the title Update debian.md Consolidate conflicting package names to eliminate extra apt-get runs Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/engine Issue affects Docker engine/daemon area/install Relates to installing a product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant