How to Uninstall SQL Tools from RedHat Linux Server
I have described how to uninstall SQL Server 2017 running on Redhat Linux server in my last article. Here, i will explain how to remove or uninstall SQL tools (sqlcmd and bcp utilities) from red hat linux machine. Both utilities are part of SQL tools package mssql-tools so we need to remove this package mssql-tools in order to uninstall these utilities.
Read More on SQL Server Installation on RHEL
- How to install SQL Server 2017 on RedHat Linux
- How to Install SQL Server on Redhat Linux without Internet – Offline Installation
- Install SQL Tools on RedHat Linux using Internet
- Install SQL Server Agent on RHEL
- Installing SQL tools on RHEL without Internet – Offline Installation
Uninstall SQL Tools on RHEL
As we know sqlcmd and bcp utilities are part of SQL tools so if you want to uninstall these utilities from red hat linux machine you need to uninstall SQL tools package mssql-tools. Follow below steps to uninstall sqlcmd utility from your redhat linux machine.
1- Connect to your RHEL server where SQL tools has been installed and running. Check whether SQL tools are installed on this machine or not by checking sqlcmd or bcp utilities. You can see RedHat Linux is recognizing sqlcmd utility that means SQL tools have been installed on this machine that needs to be uninstalled.
2- We can see sqlcmd utility in above screenshot. Now, we will uninstall SQL tools by running below command.
#Uninstall SQL tools from RHEL sudo yum remove mssql-tools
You can see the details of SQL tools package that is going to be removed from this machine. We can see mssql-tools package is going to be removed here. Above command will ask us to type y to proceed with the uninstallation of this package mssql-tools and type N to quit this removal.
I entered y to uninstall SQL tools from this machine. This will uninstall both utilities sqlcmd and bcp. You can see SQL tools package mssql-tools has been removed from this machine post entering y in above screenshot.
3- Now, we can check sqlcmd or bcp utility again to validate this uninstallation. I typed sqlcmd as i did in first screenshot and pressed enter. Now we can see red hat linux is not recognizing sqlcmd utility, that means SQL tools have been removed from this machine.
#check sqlcmd utility post SQL tools uninstallation sqlcmd
Here i have shown step by step process to uninstall SQL Tools sqlcmd and bcp from linux machine.
- How to Fix SQL Error 1005: A Comprehensive Guide - April 9, 2023
- How to Fix SQL Server Error 207 – Invalid Column Name - April 9, 2023
- How to Fix SQL Error 1045: Resolving Access Denied Issues - April 8, 2023