Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
Some debian package manager tweaks#16733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages . By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.This results in smaller downloads and installation of packages .Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends) .results in smaller image size.
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages . By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.This results in smaller downloads and installation of packages .Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends) .results in smaller image size.
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages . By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.This results in smaller downloads and installation of packages .Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends) .results in smaller image size.
alalek commentedMar 7, 2020
Did you validate that scripts which use this containers are not broken by this patch? |
rajpratik71 commentedMar 7, 2020
build is still pending , i think needed some approval . From my side , this is apt-get package install optimization , this tweak doesn't let install unnecessary packages or recommended packages in simple straight forward way |
alalek commentedMar 7, 2020
But these packages can be used by dependent scripts, so patch should be validated. Unfortunately, there are no automatic tests on this stuff (it just a sample, no frequent updates are expected). So it requires manual validation on local machines. |
rajpratik71 commentedMar 7, 2020
As i mentioned and refered to the blog also . In general any apt package installation consist there a list of their main dependencies beside that there are some suggested packages , which "--no-install-recommends" prevent them from installing |
asmorkalov commentedMar 16, 2020
@alalek It looks like the change does not introduce regressions. |
asmorkalov commentedMar 18, 2020
👍 |
Some debian package manager tweaks
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages .
By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.
This results in smaller downloads and installation of packages .
Refer to blog atUbuntu Blog .
results in smaller image size.
Pull Request Readiness Checklist
See details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.