How to Uninstall Qt5?
Somehow I Ended up with 2 Versions of Qt on My Ubuntu 14.04 Lts Machine, Qt4 and Qt5. Here Is the Output of Qtchooser -List-Versions 4 5 Config Default...
Somehow I ended up with 2 versions of Qt on my Ubuntu 14.04 LTS machine, Qt4 and Qt5. Here is the output of qtchooser -list-versions
4
5
config
default
qt4-i386-linux-gnu
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
How do I remove Qt5?
- Open a terminal and navigate to the directory where Qt is installed.
- Run the command
./MaintenanceTool.
From The Terminal:
1. Remove the package:
sudo apt-get remove qtcreator && sudo apt-get remove qt5*
2. Remove all the dependencies:
sudo apt-get purge qtcreator && sudo apt-get purge qt5*
3. Remove the unneeded packages that were once installed as a dependency:
sudo apt-get autoremove
4. Remove the retrieved packages from the local cache:
sudo apt-get autoclean
From the GUI:
Open Qt Maintenance Tool
Tick Uninstall
Click next, then Uninstall
Enter the Sudo password if requested then, press Finish.
If you want to remove/uninstall Qt Creator then follow this:
Open your terminal (Ctrl + Alt + T), then...
To only uninstall Qt Creator:
sudo apt-get remove qtcreatorIf you want to remove Qt Creator and its dependent packages as well:
sudo apt-get remove --auto-remove qtcreator
Reference website:
Just remove the Qt5 dev packages, that should do it:
sudo apt autoremove '.*qt5.*-dev'
Inspect the shown list of packages to be removed carefully before hitting yes, though! If there are some you want to keep, do apt install for them to mark them manually installed.
Where is your qtchooser configuration file?
$: locate qtchooser | grep confFrom the list of conf files, probably there is one call "default.conf". This one is a link to one of the others (4.conf or qt4.conf or 5.conf or qt5.conf). Choose the one that makes sense to you, and create a link to it.
Suppose your default file path is
/usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf.Create a backup:
$: cd $(dirname /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf) $: cp -av default.conf default.conf_backupLet's say your target is
/usr/lib/x86_64-linux-gnu/qtchooser/qt5.conf, then:$: sudo ln -s /usr/lib/x86_64-linux-gnu/qtchooser/qt5.conf default.confIs the path to your qmake right?
Check the qmake location:
$: locate qmake | grep binIs this the same one as indicated in your modified qtchooser/default.conf?
$: cat /usr/lib/x86_64-linux-gnu/qtchooser/qt5.confIf the answer is yes, then you are done. If the answer is no, then you need to modify the file:
Create a backup:
$: cd $(dirname /usr/lib/x86_64-linux-gnu/qtchooser/qt5.conf) $: cp -av qt5.conf qt5.conf_backupEdit the file and change the path to your qmake location:
$ sudo vi qt5.confNow it is done.