]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
optimization debian package manager tweaks mq-no-install-recommends
authorPratik Raj <rajpratik71@gmail.com>
Tue, 10 Mar 2020 11:30:57 +0000 (17:00 +0530)
committerMaria Matejka <mq@jmq.cz>
Thu, 12 Mar 2020 08:30:42 +0000 (09:30 +0100)
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) .

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
misc/docker/debian-7-amd64/Dockerfile
misc/docker/debian-7-i386/Dockerfile
misc/docker/debian-8-amd64/Dockerfile
misc/docker/debian-8-i386/Dockerfile
misc/docker/debian-9-amd64/Dockerfile
misc/docker/debian-9-i386/Dockerfile
misc/docker/debian-testing-amd64/Dockerfile
misc/docker/debian-testing-i386/Dockerfile
misc/docker/ubuntu-14.04-amd64/Dockerfile
misc/docker/ubuntu-16.04-amd64/Dockerfile

index a4a3841ef9224f9c91e4930bbc5737c4d2ff8bc0..f5bbfb9dd993ac19dee9471dba026c1eb2bb395d 100644 (file)
@@ -4,7 +4,7 @@ RUN echo 'deb http://archive.debian.org/debian/ wheezy main' > /etc/apt/sources.
 RUN echo 'deb http://archive.debian.org/debian-security/ wheezy/updates main' >> /etc/apt/sources.list
 RUN apt-get -y update -o Acquire::Check-Valid-Until=false
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index aa9019ced48056c1a07946b7f8128f6b81cfde5b..e43dd82558a67447910c026a99cef2446bbe5a8a 100644 (file)
@@ -4,7 +4,7 @@ RUN echo 'deb http://archive.debian.org/debian/ wheezy main' > /etc/apt/sources.
 RUN echo 'deb http://archive.debian.org/debian-security/ wheezy/updates main' >> /etc/apt/sources.list
 RUN apt-get -y update -o Acquire::Check-Valid-Until=false
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index d0e8ed0aa11ff541e6cbe72d036649b78f6c170c..cc5bd9373f9d04b2a6889792710af20c6add202a 100644 (file)
@@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index 9dd6f022159756c320880727b1c1e65d654a3b8b..7e40bdeb439e45d56d5bc8ef2bb3fc39fd01f280 100644 (file)
@@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index e8a17efc62c3af74c43fd24ede267d873baed6c5..eca4884075c406285adc9b065e14183822c22411 100644 (file)
@@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index 73e7075054324f165a7d76abec98838f2bc86eaf..62fb256492ad23348030860bde58ce9c9d07eccc 100644 (file)
@@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index 3b66e3fa1b5d7192308036f9c562f7a5afaf8b85..3f24dbd192877615b3ead34c3f86a30ed4c09fbf 100644 (file)
@@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index 998ce969544e7539764a16e1a89a5c00c7e19db7..1facce4cd0f5e08c9530a4a9397a1eed376dda37 100644 (file)
@@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index ccac3eb42092fabff77e843daaaae47cdef1ee3a..3e2ba6a60ef7fc86951c0f6dbeb190a1a3b3e276 100644 (file)
@@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \
index 50a4918c8e78c1625bc396deba8a5cf578d12604..eece2d1e4a17389cb98aefcc02c802fcc2ba5515 100644 (file)
@@ -3,7 +3,7 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get --no-install-recommends install -y \
        autoconf \
        build-essential \
        flex \