T
T
tugo2021-05-20 15:44:14
linux
tugo, 2021-05-20 15:44:14

Why does the xinit package have many dependencies? How not to install unnecessary?

Good afternoon!

Raspberry Pi OS Lite installed on RPi 4 (no desktop). I want to deliver the simplest window manager (I3) and, accordingly, the X server. To run a program in kiosk mode that requires an X server.
Everything worked for me with the command sudo apt install xserver-xorg xinit i3
Here is its result:

spoiler

sudo apt install xserver-xorg xinit i3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dbus-user-session dunst fontconfig fontconfig-config fonts-dejavu fonts-dejavu-core fonts-dejavu-extra fonts-vlgothic i3-wm
  i3lock i3status libanyevent-i3-perl libanyevent-perl libasync-interrupt-perl libasyncns0 libcairo2 libcommon-sense-perl
  libconfuse-common libconfuse2 libdatrie1 libdrm-amdgpu1 libdrm-common libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl-mesa0
  libegl1 libegl1-mesa libepoxy0 libev-perl libev4 libevdev2 libflac8 libfontconfig1 libfontenc1 libgbm1 libgdk-pixbuf2.0-0
  libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0
  libgraphite2-3 libguard-perl libgudev-1.0-0 libharfbuzz0b libice6 libinput-bin libinput10 libjbig0 libjson-xs-perl libllvm9
  libmtdev1 libogg0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0 libpixman-1-0 libpulse0
  libsensors-config libsensors5 libsm6 libsndfile1 libstartup-notification0 libthai-data libthai0 libtiff5
  libtypes-serialiser-perl libunwind8 libvorbis0a libvorbisenc2 libwacom-bin libwacom-common libwacom2 libwayland-client0
  libwayland-server0 libwebp6 libx11-xcb1 libxaw7 libxcb-cursor0 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-icccm4
  libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shm0 libxcb-sync1
  libxcb-util0 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb-xrm0 libxdamage1 libxdg-basedir1 libxfixes3 libxfont2
  libxft2 libxi6 libxinerama1 libxkbcommon-x11-0 libxkbcommon0 libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1
  libxshmfence1 libxss1 libxt6 libxtst6 libxxf86vm1 libyajl2 rxvt-unicode suckless-tools x11-common x11-xkb-utils xfonts-base
  xfonts-encodings xfonts-utils xserver-common xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-libinput
  xserver-xorg-input-wacom xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati
  xserver-xorg-video-fbdev xserver-xorg-video-nouveau xserver-xorg-video-radeon xserver-xorg-video-vesa
Suggested packages:
  libevent-perl libio-async-perl libnet-ssleay-perl libpoe-perl libtask-weaken-perl pulseaudio lm-sensors dwm stterm surf
  xfonts-100dpi | xfonts-75dpi xfonts-scalable xinput firmware-amd-graphics xserver-xorg-video-r128 xserver-xorg-video-mach64
The following NEW packages will be installed:
  dbus-user-session dunst fontconfig fontconfig-config fonts-dejavu fonts-dejavu-core fonts-dejavu-extra fonts-vlgothic i3
  i3-wm i3lock i3status libanyevent-i3-perl libanyevent-perl libasync-interrupt-perl libasyncns0 libcairo2
  libcommon-sense-perl libconfuse-common libconfuse2 libdatrie1 libdrm-amdgpu1 libdrm-common libdrm-nouveau2 libdrm-radeon1
  libdrm2 libegl-mesa0 libegl1 libegl1-mesa libepoxy0 libev-perl libev4 libevdev2 libflac8 libfontconfig1 libfontenc1 libgbm1
  libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0
  libglx0 libgraphite2-3 libguard-perl libgudev-1.0-0 libharfbuzz0b libice6 libinput-bin libinput10 libjbig0 libjson-xs-perl
  libllvm9 libmtdev1 libogg0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0 libpixman-1-0 libpulse0
  libsensors-config libsensors5 libsm6 libsndfile1 libstartup-notification0 libthai-data libthai0 libtiff5
  libtypes-serialiser-perl libunwind8 libvorbis0a libvorbisenc2 libwacom-bin libwacom-common libwacom2 libwayland-client0
  libwayland-server0 libwebp6 libx11-xcb1 libxaw7 libxcb-cursor0 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-icccm4
  libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shm0 libxcb-sync1
  libxcb-util0 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb-xrm0 libxdamage1 libxdg-basedir1 libxfixes3 libxfont2
  libxft2 libxi6 libxinerama1 libxkbcommon-x11-0 libxkbcommon0 libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1
  libxshmfence1 libxss1 libxt6 libxtst6 libxxf86vm1 libyajl2 rxvt-unicode suckless-tools x11-common x11-xkb-utils xfonts-base
  xfonts-encodings xfonts-utils xinit xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
  xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu
  xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-nouveau xserver-xorg-video-radeon
  xserver-xorg-video-vesa
0 upgraded, 144 newly installed, 0 to remove and 0 not upgraded.
Need to get 53.0 MB of archives.
After this operation, 619 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Carrying 619 MB of packages.

I suspect that I don't need libraries at all
libwacom-bin libwacom-common libwacom2 libwayland-client0 libwayland-server0 xserver-xorg-video-amdgpu xserver-xorg-video-ati


How to put at a minimum what you need, without the left libraries?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MegaLite, 2021-05-20
@tugo

sudo apt install xinit --no-install-recommends - won't pull recommended packages.
sudo apt install xinit --no-install-recommends --no-install-suggests - will not drag almost anything with it at all :) (except, of course, without which xinit will not work)
In general, if I had a Pi, then most likely, I would look towards remote control (X11vnc for example) - it APPEARS (but this is not accurate) nothing is needed except xserver-xorg, x11vnc and some kind of i3 environment, so that everything is beautiful and managed locally networks.

U
unseriously, 2021-05-20
@unseriously

You can download the required deb package with apt, and install it using dpkg:
dpkp -i <путь к пакету>
dpkg does NOT install dependencies, only the package that was specified to it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question