Open mblaschke-daimlertruck opened 2 months ago
@mblaschke-daimlertruck That's because you start with a bare container and installing git
pulls a lot of dependencies. The container starts with 69 packages only! There's no gcc
or make
, etc. I bet the RHEL
container has many of the missing cbl-mariner
rpms already installed, thus less packages pulled when adding git
CBL-Mariner container:
root [ / ]# rpm -qa | wc -l
69
RHEL container:
[root@563d95a4eb6e ~]# rpm -qa | wc -l
185
I don't have openssh-server
and subversion
installed on redhat/ubi8
.
Why is git pulling these dependencies?
There's a request to split openssh
into openssh-server
and openssh-client
. See #9569
As for subversion
, git
requires subversion-perl
which requires subversion
But it's a conditional build. From git.spec
:
%if %{with_svn}
%package svn
Summary: Git tools for interacting with Subversion repositories
Requires: git = %{version}-%{release}
Requires: subversion
Requires: perl(Digest::MD5)
BuildArch: noarch
%description svn
%{summary}.
%endif
So, I guess git
on cbl-mariner can be built without svn
support. The users would complain about 😀
Describe the bug
yum install git
installs way too many packages (openssh, openldap, subversion?!)To Reproduce Steps to reproduce the behavior:
docker run -it --rm mcr.microsoft.com/cbl-mariner/base/core:2.0 sh
yum update -y
yum install git
result:
Expected behavior install git no openssh no openldap no subversion
using redhat
redhat/ubi8
: