Skip to content

minifai: apt disable-script-warning #382

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

Merged
merged 1 commit into from
Jun 25, 2025
Merged

minifai: apt disable-script-warning #382

merged 1 commit into from
Jun 25, 2025

Conversation

crpb
Copy link
Contributor

@crpb crpb commented Jun 23, 2025

there is no bonus in using "apt" over "apt-get" with the command "install" other than it still spews out warning about it's cli interface.

@mika
Copy link
Member

mika commented Jun 24, 2025

I'm not 100% sure whether apt and apt-get work exactly the same for our needs, quoting from apt(8):

All features of apt(8) are available in dedicated APT tools like apt-get(8) and apt-cache(8) as well. apt(8) just changes the default value of some options (see apt.conf(5) and specifically the Binary scope). So you should prefer using these commands (potentially with some additional options enabled) in your scripts as they keep backward compatibility as much as possible.

IIRC apt automatically deletes files from the cache after package installation, not sure that really matters for us or any other modified default behavior? @zeha are you aware of anything?

@crpb
Copy link
Contributor Author

crpb commented Jun 24, 2025

IIRC apt automatically deletes files from the cache after package installation,

yeah, i vaguely recall that apt differed from apt-get i don't know how long ago but what actually would make sure is -o apt::keep-downloaded-packages=0 which nowadays defaults to FALSE ...

To be thorough on cleanup i would just add an apt-get clean on the end of the build-process or smth like find "$target"/var/cache/apt/archives -type f ! -name lock -delete

apt-get clean

       clean
           clean clears out the local repository of retrieved package files. It
           removes everything but the lock file from /var/cache/apt/archives/
           and /var/cache/apt/archives/partial/.

ref: #383

@zeha
Copy link
Member

zeha commented Jun 24, 2025

I'm against using the old interface (apt-get), when the apt developers clearly stated they're not gonna fix design bugs in it.

@crpb crpb changed the title minifai: use apt-get minifai: apt disable-script-warning Jun 24, 2025
@zeha zeha merged commit d0d79d4 into grml:master Jun 25, 2025
10 checks passed
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

Successfully merging this pull request may close these issues.

3 participants