Is there another method of removing and reinstalling/updating stackdriver-agent after pinning it to a certain version beyond removing to reinstall the latest?
- stackdriver-agent.x86_64 5.5.2-1001.el7
- stackdriver-agent.x86_64 5.5.2-1002.el7
Running "install -y stackdriver-agent" still uses stackdriver-agent.x86_64 0:5.5.2-1002.el7 even after "remove stackdriver-agent".
Is there a config file to make this change before pulling/installing the latest version which is 6.*?
Try going over the "Installing the Cloud Monitoring agent on a single VM" documentation which I've went through.
I was able to install, start, stop, remove and install another version of the agent.
Here's how I did it (using CentOS 6 box):
I've created a new CentOS 6 VM, added agent's repository to package list:
Then listed all available versions for this OS:
Version 6 of the agent is not available for CentOS 6 (it shows in CentOS 8).
I then installed
1001
version:Listed installed agent's again and got nothing:
Started the agent:
Remove the agent
Install
1002
version:Check installed version: