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
That doesn't seem to be a meta-package per-se ... compare the output (
Depends:
part in particular) of:to the output of an actual meta-package like:
... as you can see the former shows real dependencies on other different packages not among which a
google-chrome*
package so not a meta-package by this definition while the latter lists dependency on a certain version of itself so a meta-package by this definition (in layman's terms, that is)That said, you can search available packages from added repositories like this:
or like this:
or alternatively search text in the related repository cached list of packages file under
/var/lib/apt/lists/
(gets updated withsudo apt update
) like for example:... where
Filename:
is the actual file path under that repository i.e. for example the stable Google Chrome package file is at: