I want to install a particular version of Chrome from the official Google's repository. This is how I install Chrome now:
RUN apt-get update \
&& apt-get install -y wget gnupg \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf libxss1 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
As I undersand, this is the repository entry:
http://dl.google.com/linux/chrome/deb/ stable main
according to the format described here:
deb http://site.example.com/debian distribution component1 component2 component3
So here it uses stable
as distribution, and main
as a component. Stable
is supposed to the version, but maybe it's a metapackage that points to the latest? But I can't figure out how to see what versions are available in this repository?
When I install it I see the following output, particularly this line:
The following packages will be upgraded:
google-chrome-stable
1 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
Need to get 105 MB of archives.
After this operation, 3688 kB of additional disk space will be used.
Get:1 https://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 120.0.6099.71-1 [105 MB]
so it somehow knows that the latest is 120.0.6099.71-1
and the repository link becomes this:
https://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 120.0.6099.71-1