If you’re a skeptical person then you might be asking:
“How can we be sure that Git was actually installed?”
Let’s verify this right now.
Kitchen has a login subcommand for just these kinds of situations:
$ kitchen login Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-31-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed 10 Jun 2020 07:20:35 PM UTC System load: 0.01 Processes: 100 Usage of /: 2.6% of 61.31GB Users logged in: 0 Memory usage: 16% IPv4 address for eth0: 10.0.2.15 Swap usage: 0% 0 updates can be installed immediately. 0 of these updates are security updates. The list of available updates is more than a week old. To check for new updates run: sudo apt update This system is built by the Bento project by Chef Software More information can be found at https://github.com/chef/bento Last login: Wed Jun 10 19:17:07 2020 from 10.0.2.2 vagrant@default-ubuntu-2004:~$
As you can see by the prompt above we are now in the
default-ubuntu-2004 instance. We’ll denote the prompt in an instance with
$ for clarity. Now to check if Git is installed:
$ which git /usr/bin/git $ git --version git version 2.25.1
Rockin. Now we can exit out back to our workstation:
$ exit logout Connection to 127.0.0.1 closed.
Feel free to use the login subcommand any time you have the urge to poke around, uninstall packages, turn off services, grep logs, etc. Go to town, this is a sandbox and isn’t production after all.