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

Remove non-essential packages from debian-12-minimal template #8980

Open
emanruse opened this issue Feb 26, 2024 · 19 comments
Open

Remove non-essential packages from debian-12-minimal template #8980

emanruse opened this issue Feb 26, 2024 · 19 comments
Labels
C: Debian/Ubuntu P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.

Comments

@emanruse
Copy link

The problem you're addressing (if any)

debian-12-minimal template includes non-essential packages:

  • nftables

Since minimal templates provide no network functionality to AppVMs, this is not necessary.

  • 3 text editor packages: nano, vim-tiny, vim-common

For a minimal system, one should suffice.

  • tasksel

Non-essential. The target users of minimal templates are supposedly experienced enough to use apt-get to install packages (or to install tasksel additionally, if required).

The solution you'd like

No non-essential packages or packages duplicating functionality in minimal templates.

The value to a user, and who that user might be

The same which minimal templates aim to provide.

@emanruse emanruse added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: enhancement labels Feb 26, 2024
@andrewdavidwong
Copy link
Member

andrewdavidwong commented Feb 26, 2024

  • 3 text editor packages: nano, vim-tiny, vim-common

For a minimal system, one should suffice.

Or even zero. Let users install their own preferred text editor, if they even want one. I have to manually uninstall nano when I configure a fresh Debian minimal template for myself, or else it defaults to Nano instead of Vim. Having to manually uninstall a package from a minimal template for a reason like that should never happen. That just means the template isn't minimal enough.

@h01ger
Copy link

h01ger commented Feb 27, 2024 via email

@unman
Copy link
Member

unman commented Feb 27, 2024 via email

@h01ger
Copy link

h01ger commented Feb 27, 2024 via email

@emanruse
Copy link
Author

emanruse commented Feb 27, 2024 via email

@marmarek
Copy link
Member

marmarek commented Feb 27, 2024 via email

@emanruse
Copy link
Author

emanruse commented Feb 27, 2024 via email

@emanruse
Copy link
Author

emanruse commented Feb 28, 2024 via email

@emanruse
Copy link
Author

emanruse commented Feb 28, 2024 via email

@emanruse
Copy link
Author

emanruse commented Feb 29, 2024 via email

@emanruse
Copy link
Author

emanruse commented Feb 29, 2024 via email

@unman
Copy link
Member

unman commented Mar 2, 2024 via email

@emanruse
Copy link
Author

emanruse commented Mar 2, 2024 via email

@unman
Copy link
Member

unman commented Mar 3, 2024 via email

@emanruse
Copy link
Author

emanruse commented Mar 3, 2024 via email

@emanruse
Copy link
Author

emanruse commented Mar 3, 2024 via email

@ben-grande
Copy link

I disagree with the proposal. Minimal templates are not a custom build of Qubes that debian created, it is, as unman has alreay explained, a Debian variant.

Removing packages from a minimal template is not what Qubes has done till this point, it has only used a Debian variant and built up from there.

This is a change to guest distros.

No idea what this means.

The developer's discussion mailing list.

There should be a careful assessment of the benefits and costs before
going down this path. If we do, then it should apply to all official
templates.

I agree with @unman, the user may only use or favor Debian, but why Qubes OS should favor a specific template? Qubes OS shouldn't and doing all of this for every available template is a lot of work.

Also, removing packages is not a good idea, starting from a more minimal base is much better to avoid conflicts removing desired packages.

If there are packages that can be removed from a Debian minimal build, it is on the minimal package list, does not mean that all that packages should be purged.

Anything that is not on that list, was brought up as a dependency of the Debian minbase build and has nothing to do with Qubes OS choices of packages, but the guest distro policy.

@emanruse
Copy link
Author

emanruse commented Mar 5, 2024 via email

@adrelanos
Copy link
Member

adrelanos commented Mar 7, 2024

Please fork Debian so we can avoid the "honor distribution culture" discussion. If Qubes forked Debian, then we could:

  • A) Get a standard, security hardened Debian based Template that Qubes can customize without having to consider Debian distribution culture.
  • B) Get a minimal, securitry hardened Debian based Template that can be as minimal as possible while still being useful for Qubes. Again without needing to consider what Debian distribution culture is.

I previously elaborated on that proposal here:

related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Debian/Ubuntu P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.
Projects
None yet
Development

No branches or pull requests

7 participants