How do i uninstall microsoft azure cli tools?
-
Microsoft documentation: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-yum?view=azure-cli-latest
Remove the cli tools.
$ sudo dnf remove azure-cli
Remove the repository configuration.
$ sudo rm /etc/yum.repos.d/azure-cli.repo
Remove the Microsoft public gpg key.
$ MSFT_KEY=`rpm -qa gpg-pubkey /* --qf "%{version}-%{release} %{summary}\n" | grep Microsoft | awk '{print $1}'`
$ sudo rpm -e --allmatches gpg-pubkey-$MSFT_KEY
© Lightnetics 2024