marvel-nccr / quantum-mobile

A Virtual Machine for computational materials science
https://quantum-mobile.readthedocs.io
Other
91 stars 32 forks source link

Run `apt upgrade` and `apt autoremove`? #127

Open borellim opened 4 years ago

borellim commented 4 years ago

This would:

Questions:

This is also for the Cloud edition.

ltalirz commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.