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

Run apt upgrade and apt autoremove? #127

Open
borellim opened this issue Jul 20, 2020 · 3 comments
Open

Run apt upgrade and apt autoremove? #127

borellim opened this issue Jul 20, 2020 · 3 comments

Comments

@borellim
Copy link
Member

This would:

  • keep all packages up to date (upgrade)
  • save disk space (autoremove)

Questions:

  • any disadvantages?
  • do we already do it anywhere?

This is also for the Cloud edition.

@ltalirz
Copy link
Member

ltalirz commented Jul 20, 2020

Both of these commands are already run as part of the simulationbase role.

Note that both require guards since they aren't idempotent (guard for apt upgrade: 1 day cache; guard for autoremove: only run on demand)

@borellim
Copy link
Member Author

borellim commented Jul 21, 2020

Ok, thanks a lot. I'll look into these.

EDIT: I'm not closing the issue because several packages are out of date even immediately after deployment. In fact, I suspect the correct form of the first task you linked would be:

  apt:
    name: "*"
    state: latest
    cache_valid_time: 86400  # One day

@borellim
Copy link
Member Author

MEMO: upgrading the kernel breaks the VirtualBox guest additions, unless kernel headers are also installed.
To install kernel headers, install package linux-headers-generic: the latest version will be installed.

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

No branches or pull requests

2 participants