How to reduce required installation space?
-
Dear community,
I'm using the command line interface to install Qt:
qt-unified-linux-x64-4.6.0-online.run --email ${MAIL} --password ${PASSWORD} --accept-licenses --accept-obligations --default-answer --confirm-command --no-default-installations install ...
The required installation space is more than 7GB. I would like to find a way to reduce this.
I know I do not need some packages. For example: qt.qt6.643.examples.qtshadertools, qt.qt6.643.doc.qtmultimedia etc.
Is there any way to deselect some specific packages?
or tips to reduce the footprint ? -
@Richard-Buchmann said in How to reduce required installation space?:
Is there any way to deselect some specific packages?
Which packages are you actually installing?
or tips to reduce the footprint ?
- pick only packages you need (you can check which using the GUI installer, it will be a bit easier to understand it this way)
- do not pick debug symbols
- do not pick source components
- only choose a single Qt version, for single compiler
Alternatively, you can compile Qt yourself. This way you get total control and can get down in size a lot. Just as an example, I am using Qt 6.5.3 on my current project, which is compiled statically with only a tight selection of modules we actually use. The entire Qt, after build, weights 228 MiB.
-
@sierdzio Thank you for the tips. Debug symbols, of course, reduce a lot. I tried to remove it. I hope I does not need it soon.
I would like to keep using dynamic libraries.
I need gcc and android platforms. It install android_armv7, android_x86 etc.
414M /opt/Qt/6.4.3/android_arm64_v8a
346M /opt/Qt/6.4.3/android_armv7
351M /opt/Qt/6.4.3/android_x86
413M /opt/Qt/6.4.3/android_x86_64I do not need android_x86*. I guess I can save space (and network bandwidth) here.
The UI has only 1 check box for all android stuff, so I cannot select architectures. I cannot also install debug for gcc_64 only (not for android_*, for example).
"MaintenanceTool list" display packages list. So I tried to install only the one I need: "qt.qt6.643.addons.qtmultimedia.android_arm64_v8a" and some other specific packages. The installation process ends normally but "6.4.3/android_arm64_v8a" is still missing.
-
@Richard-Buchmann said in How to reduce required installation space?:
@sierdzio Thank you for the tips. Debug symbols, of course, reduce a lot. I tried to remove it. I hope I does not need it soon.
Is this for your development machine? I thought we are talking about some CI runner.
On a dev machine space and network bandwidth are usually not a big problem, you only need to install Qt once after all.
I would like to keep using dynamic libraries.
Sure, I was not suggesting a switch to static, just providing an example and a static build was all I had :-)
[...]
"MaintenanceTool list" display packages list. So I tried to install only the one I need: "qt.qt6.643.addons.qtmultimedia.android_arm64_v8a" and some other specific packages. The installation process ends normally but "6.4.3/android_arm64_v8a" is still missing.Hm yes, Android builds are often pretty big, although also here a custom build of Qt can help. But building Qt manually is not easy so it is not a great solution.