helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
808 stars 58 forks source link

Reduce ISO size #80

Open probonopd opened 3 years ago

probonopd commented 3 years ago

We need to reduce the ISO size to stay under the 2GB limit for GitHub Releases yet give us some headroom.

Useful commands:

See a tree of the top-level dependencies

sudo pkg -y install pkg pkg_tree
pkg_tree

This gives a quick overview about the direct dependencies of all installed packages.

See why a package was included

Example:

pkg remove -n perl5 (this needs no root rights and does not do anything besides print the information)

This shows which other packages we would have to sacrifice if we wanted to get rid of the perl5 package.

See why something is an indirect dependency of something

Example:

pkg_tree -v zenity > zenity.deps

This produces a huge tree, so it is best to redirect the output of a file where it can be searched.

pynixis commented 2 years ago

@probonopd I think we can close this issue out.

probonopd commented 2 years ago

Reducing the ISO size is always an issue. The ISO can never be small enough :-) Although we are well under 2 GB at the moment, partly by having factored out the Deveoper tools.

pynixis commented 2 years ago

True. Understandable.

grahamperrin commented 2 years ago

If the size grows considerably after recent https://github.com/helloSystem/ISO/commit/1558928a1c95e2a635b953cf2e77e5fc90c496b0, then look first at line 34.

probonopd commented 2 years ago

Thanks for the hint @grahamperrin but that does't work anyway, because pkg add apparently isn't capable of installing dependencies, and pkg install would apparently need a pkg repository which we don't have nor want unless it can be done within a GitHub repository (I do not want to maintain infrastructure/servers).