Trying to make my install as small as possible

If none of the more specific forums is the right place to ask

Trying to make my install as small as possible

Postby pawRoot » 2018-11-06 20:06

Hi

I do a minimal install of Buster and have like 240 packages after installation, when i install some programs i end up with about 1000 packages, maybe someone has some tips how could i reduce it ? like installing core xorg only ? i have no idea...

All i install is this:

Code: Select all
sudo apt install -y xorg rsync pulseaudio alsa-utils pavucontrol \
                    scrot curl wget feh neofetch unar \
                    mpv xfce4-power-manager udevil vim mc ncdu htop \
                    fonts-roboto rxvt-unicode-256color xclip rofi mksh \
                    zip unzip rsync ristretto mupdf \
                    python3-pip fontconfig fonts-liberation cmus \
                    fonts-font-awesome compton fonts-noto ttf-dejavu


Also while installing Debian in tasksel i deselect everything.
User avatar
pawRoot
 
Posts: 564
Joined: 2016-12-28 18:26
Location: Poland

Re: Trying to make my install as small as possible

Postby stevepusser » 2018-11-06 20:34

"Some programs" can bring in a lot of dependencies. Are you installing the recommended packages as is the apt default in Debian? Not installing those will bring the package count down, at the possible loss of some functionality in the program.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.2.0, wine-staging 3.20, GIMP 2.10.8, Liquorix kernel 4.18-22, Midori 6.0
User avatar
stevepusser
 
Posts: 10130
Joined: 2009-10-06 05:53

Re: Trying to make my install as small as possible

Postby Head_on_a_Stick » 2018-11-06 20:42

Avoid metapackages like the plague.

Anyway, why are the package numbers such a problem? I'm sure you have plenty of space on the drive :)

EDIT: also:
Code: Select all
# apt install --no-install-recommends foo
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8170
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Trying to make my install as small as possible

Postby pawRoot » 2018-11-06 22:12

Head_on_a_Stick wrote:Anyway, why are the package numbers such a problem? I'm sure you have plenty of space on the drive :)


My Arch install was about 500-600 packages so i wanted to see if i can do the same on Debian :mrgreen:
I installed everything with
Code: Select all
--no-install-recommends
and now my system is at 700 packages.
User avatar
pawRoot
 
Posts: 564
Joined: 2016-12-28 18:26
Location: Poland

Re: Trying to make my install as small as possible

Postby stevepusser » 2018-11-07 01:33

Probably because the Debian packagers have a tendency to split programs up into more separate packages than Arch. VLC gets cut up into around eight for a base install, for example, but also creates even optional more plugins from the same source.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.2.0, wine-staging 3.20, GIMP 2.10.8, Liquorix kernel 4.18-22, Midori 6.0
User avatar
stevepusser
 
Posts: 10130
Joined: 2009-10-06 05:53

Re: Trying to make my install as small as possible

Postby debiman » 2018-11-07 05:57

unfortunately, with a long list like from post #1, you will always have this sort of problem.
you need to go through that list 1 by 1 and see what each package would pull in, then consider using alternate packages that have more dependencies already in common with the rest of your system.

a few things to consider:
  • a small command line utility can be built on a framework that is not yet present on your computer and will pull in a lot if extra stuff. maybe you can find something with identical functionality that is written in perl or python, and not go (just an example)?
  • GUI toolkits and desktop dependencies. try to reduce the number of gui toolkits (gtk, qt) and avoid packages that pull in desktop environments as dependencies (gnome, kde, also xfce to some extent
  • the number of packages is not so important; it's the size of the packages that really matters.
User avatar
debiman
 
Posts: 3017
Joined: 2013-03-12 07:18


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable