Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devuan 4 container become fat #5

Open
vazhnov opened this issue Nov 29, 2020 · 1 comment
Open

Devuan 4 container become fat #5

vazhnov opened this issue Nov 29, 2020 · 1 comment

Comments

@vazhnov
Copy link
Owner

vazhnov commented Nov 29, 2020

Previous image was ~125 MB, but new one is ~200 MB:

 % ls -lAF /var/lib/vz/template/cache/devuan-4*
-rw-r--r-- 1 root root 125093159 Oct 14 00:13 /var/lib/vz/template/cache/devuan-4.0-minimal_0.9_amd64.tar.gz
-rw-r--r-- 1 root root 200979093 Nov 29 13:20 /var/lib/vz/template/cache/devuan-4.0-minimal_1.0_amd64.tar.gz

dpigs shows a big cpp-10 package:

root@devuan4-v10:~# dpigs
304790 cpp-10
33144 libicu67
17478 coreutils
12769 libc6
7661 perl-base
6673 dpkg
6389 bash
4600 util-linux
4298 openssh-client
4237 apt

but:

root@devuan4-v10:~# apt-get -V purge cpp-10
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
   bsdmainutils* (12.1.7)
   calendar* (12.1.7)
   cpp* (4:10.2.0-1)
   cpp-10* (10.2.0-16)
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 313 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

I like bsdmainutils for command column. Maybe it is time to delete it from the image.

@vazhnov
Copy link
Owner Author

vazhnov commented Nov 29, 2020

Devuan 3 images are pretty stable, ~118 MB:

 % ls -lAF /var/lib/vz/template/cache/devuan-3.0-min*
-rw-r--r-- 1 root root 118463182 Apr 15  2020 /var/lib/vz/template/cache/devuan-3.0-minimal_1.2_amd64.tar.gz
-rw-r--r-- 1 root root 118581124 Nov 29 14:07 /var/lib/vz/template/cache/devuan-3.0-minimal_1.3_amd64.tar.gz

The biggest packages:

root@devuan3-min-v13:~# dpigs
31687 libicu63
15719 coreutils
12337 libc6
10148 perl-base
7696 eudev
6693 dpkg
6439 bash
4589 util-linux
4336 postfix
4077 libssl1.1

and bsdmainutils installed:

root@devuan3-min-v13:~# dpkg -l|grep bsdmainutils
ii  bsdmainutils                  11.1.2+b1                          amd64        collection of more utilities from FreeBSD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant