-2

In an Ansible playbook which automates a VPS setup I'm in the need to install git as soon as possible.

I want to do that before going through the entire apt update && apt upgrade procedure, so I want to first do an apt update && apt install git, then download some repositories which basically configure the shell, and later, when all users have been set up and their shells been configured, start with the real installing of applications, which is preceded by a apt upgrade.

Is this initial call to apt install git on a non-upgraded system problematic?

I've been told that an apt upgrade should be done before installing anything. What are the risks of not doing that?

1

not much risk if you have done an update before. if there are libraries to be updated, you will be prompted to update them as well before installing the app you want to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.