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

Debian: Replace apt-get with apt for updates #1890

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Conversation

bastelfreak
Copy link
Member

This replaces the old apt-get update with the newer apt update. This works on all modern Debian versions we support. Also -qq was added, to only output errors. This makes the beaker run a bit more readable.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my Debian 12 I see apt-get update -qq also works. I didn't test this, but I know with plain apt you always see WARNING: apt does not have a stable CLI interface. Use with caution in scripts. when you pipe things so for scripts I'd have a slight preference to stay with apt-get if apt-get update -qq also works on all stable version we support.

Another difference: apt tells me how many packages can be upgraded, apt-get doesn't.

This replaces the old `apt-get update` with the newer `apt update`.
This works on all modern Debian versions we support. Also `-qq` was
added, to only output errors. This makes the beaker run a bit more
readable.
@bastelfreak
Copy link
Member Author

@ekohl updated it for apt-get update -qq

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified this at least works on Debian 10. Debian 9 is no longer on the mirrors so that errors, out, but not because it doesn't understand -qq.

@ekohl ekohl merged commit 2be5851 into voxpupuli:master Jul 24, 2024
7 checks passed
@bastelfreak bastelfreak deleted the apt branch July 24, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants