Skip to content

Instantly share code, notes, and snippets.

@tianon
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianon/e323ecf5595c8d411cff to your computer and use it in GitHub Desktop.
Save tianon/e323ecf5595c8d411cff to your computer and use it in GitHub Desktop.
Why you no remove these 7 packages, APT???
$ docker run -it --rm debian:wheezy bash
root@9ea67f28938b:/# apt-get update && apt-get install -y curl --no-install-recommends
...
The following extra packages will be installed:
libcurl3 libgcrypt11 libgnutls26 libgpg-error0 libgssapi-krb5-2 libidn11
libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2
libp11-kit0 librtmp0 libsasl2-2 libssh2-1 libssl1.0.0 libtasn1-3
Suggested packages:
rng-tools krb5-doc krb5-user
Recommended packages:
ca-certificates krb5-locales libsasl2-modules
The following NEW packages will be installed:
curl libcurl3 libgcrypt11 libgnutls26 libgpg-error0 libgssapi-krb5-2
libidn11 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2
libp11-kit0 librtmp0 libsasl2-2 libssh2-1 libssl1.0.0 libtasn1-3
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
...
root@9ea67f28938b:/# apt-get purge -y --auto-remove curl
...
The following packages will be REMOVED:
curl* libcurl3* libgssapi-krb5-2* libidn11* libk5crypto3* libkeyutils1*
libkrb5-3* libkrb5support0* librtmp0* libssh2-1* libssl1.0.0*
0 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
...
root@9ea67f28938b:/# apt-get purge --auto-remove libgcrypt11 libgnutls26 libgpg-error0 libldap-2.4-2 libp11-kit0 libsasl2-2 libtasn1-3
...
The following packages will be REMOVED:
libgcrypt11* libgnutls26* libgpg-error0* libldap-2.4-2* libp11-kit0*
libsasl2-2* libtasn1-3*
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
...
root@9ea67f28938b:/# # WAT - no warnings, no errors, nothing. Just 7 packages that don't get autoremoved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment