Uninstalling pre-installed software on convenience images

There are situations where you want to utilize one of our convenience images, however an action you need to take for your pipeline conflicts with an item that comes pre-installed on the image.

Instead of having to create and maintain a custom image, in a lot of situations you can simply uninstall the software causing issues, or that you need to test an install on.

As an example, if you need to verify the actual installation of Homebrew on our macOS executor, since that comes pre-installed, you would need to uninstall with:

- run:
    name: Uninstall Homebrew
    command: |
      curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh > uninstall.sh
      sudo sh uninstall.sh -f -q

Most installed softwares have a way to uninstall, so implementing a similar command as above on those will help clear the image during the build of anything you don't need. 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.