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

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.

check sqlcmd utility

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

uninstall SQL 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

balidate sqlcmd utility removal

Here i have shown step by step process to uninstall SQL Tools sqlcmd and bcp from linux machine.

I hope you like this article. Please follow our facebook page and Twitter handle to get latest updates.

Follow me:

Manvendra Deo Singh

I am working as a Technical Architect in one of the top IT consulting firm. I have expertise on all versions of SQL Server since SQL Server 2000. I have lead multiple SQL Server projects like consolidation, upgrades, migrations, HA & DR. I love to share my knowledge. You can contact me on my social accounts for any consulting work.
Manvendra Deo Singh
Follow me:
Summary
How to uninstall SQL tools from Redhat Linux server?
Article Name
How to uninstall SQL tools from Redhat Linux server?
Description
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.
Author
Publisher Name
www.techyaz.com

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *