How to update Qt from 5.5.1 to 5.9.5 on Ubuntu 16.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
Currently, Ubuntu 16.04 has Qt up to 5.5.1 while Ubuntu 18.04 has Qt up to 5.9.5. Currently I'm forced to use Ubuntu 16.04, however, I need to use a program that needs Qt 5.9. How could I update Qt to version 5.9.5?
Note that I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
16.04 updates 18.04 qt
 |Â
show 2 more comments
up vote
1
down vote
favorite
Currently, Ubuntu 16.04 has Qt up to 5.5.1 while Ubuntu 18.04 has Qt up to 5.9.5. Currently I'm forced to use Ubuntu 16.04, however, I need to use a program that needs Qt 5.9. How could I update Qt to version 5.9.5?
Note that I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
16.04 updates 18.04 qt
You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
â Panther
2 days ago
@Panther I know that the command to add a ppa is something likeadd-apt-repository ppa:<ppa_name>
and the I need is this. However, I don't know the ppa name nor how to search for it.
â gvgramazio
2 days ago
google.com/search?q=ppa.qt5&oq=ppa.qt5
â Panther
2 days ago
@Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
â gvgramazio
2 days ago
@Panther On anther system, with 18.04 I installed them at first try withapt-get
. The problem is that on 16.04 I don't have the same packages.
â gvgramazio
2 days ago
 |Â
show 2 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Currently, Ubuntu 16.04 has Qt up to 5.5.1 while Ubuntu 18.04 has Qt up to 5.9.5. Currently I'm forced to use Ubuntu 16.04, however, I need to use a program that needs Qt 5.9. How could I update Qt to version 5.9.5?
Note that I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
16.04 updates 18.04 qt
Currently, Ubuntu 16.04 has Qt up to 5.5.1 while Ubuntu 18.04 has Qt up to 5.9.5. Currently I'm forced to use Ubuntu 16.04, however, I need to use a program that needs Qt 5.9. How could I update Qt to version 5.9.5?
Note that I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
16.04 updates 18.04 qt
edited yesterday
asked 2 days ago
gvgramazio
1268
1268
You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
â Panther
2 days ago
@Panther I know that the command to add a ppa is something likeadd-apt-repository ppa:<ppa_name>
and the I need is this. However, I don't know the ppa name nor how to search for it.
â gvgramazio
2 days ago
google.com/search?q=ppa.qt5&oq=ppa.qt5
â Panther
2 days ago
@Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
â gvgramazio
2 days ago
@Panther On anther system, with 18.04 I installed them at first try withapt-get
. The problem is that on 16.04 I don't have the same packages.
â gvgramazio
2 days ago
 |Â
show 2 more comments
You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
â Panther
2 days ago
@Panther I know that the command to add a ppa is something likeadd-apt-repository ppa:<ppa_name>
and the I need is this. However, I don't know the ppa name nor how to search for it.
â gvgramazio
2 days ago
google.com/search?q=ppa.qt5&oq=ppa.qt5
â Panther
2 days ago
@Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
â gvgramazio
2 days ago
@Panther On anther system, with 18.04 I installed them at first try withapt-get
. The problem is that on 16.04 I don't have the same packages.
â gvgramazio
2 days ago
You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
â Panther
2 days ago
You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
â Panther
2 days ago
@Panther I know that the command to add a ppa is something like
add-apt-repository ppa:<ppa_name>
and the I need is this. However, I don't know the ppa name nor how to search for it.â gvgramazio
2 days ago
@Panther I know that the command to add a ppa is something like
add-apt-repository ppa:<ppa_name>
and the I need is this. However, I don't know the ppa name nor how to search for it.â gvgramazio
2 days ago
google.com/search?q=ppa.qt5&oq=ppa.qt5
â Panther
2 days ago
google.com/search?q=ppa.qt5&oq=ppa.qt5
â Panther
2 days ago
@Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
â gvgramazio
2 days ago
@Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
â gvgramazio
2 days ago
@Panther On anther system, with 18.04 I installed them at first try with
apt-get
. The problem is that on 16.04 I don't have the same packages.â gvgramazio
2 days ago
@Panther On anther system, with 18.04 I installed them at first try with
apt-get
. The problem is that on 16.04 I don't have the same packages.â gvgramazio
2 days ago
 |Â
show 2 more comments
2 Answers
2
active
oldest
votes
up vote
1
down vote
You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.
Once downloaded (the following assumes the download location is ~/Downloads):
Install Qt
cd ~/Downloads
chmod +x qt-unified-linux-x64-3.0.5-online.run
./qt-unified-linux-x64-3.0.5-online.run
In the "Installation Folder" screen, enter /opt/Qt
.
In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.
The installer will request your sudo password during installation.
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the folder qtchooser
in location /etc/xdg/
(the location used in this example).
For the current user, create the folder qtchooser
in location ~/.config/
.
Create a text file in the qtchooser
folder created in the previous step named default.conf
with the following contents:
/opt/Qt/5.11.1/gcc_64/bin
/opt/Qt/5.11.1/gcc_64/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib
Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
â gvgramazio
yesterday
Ok. I've added another answer using a PPA.
â gsxruk
yesterday
add a comment |Â
up vote
1
down vote
A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.
Add the PPA
sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt update
Install Qt
sudo apt install qt511-meta-full
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the following file in location /etc/xdg/qtchooser
.
For the current user, create the following file in location ~/.config/qtchooser
.
Create a text file in the chosen qtchooser folder named default.conf
with the following contents:
/opt/qt511/bin
/opt/qt511/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/qt511/lib
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.
Once downloaded (the following assumes the download location is ~/Downloads):
Install Qt
cd ~/Downloads
chmod +x qt-unified-linux-x64-3.0.5-online.run
./qt-unified-linux-x64-3.0.5-online.run
In the "Installation Folder" screen, enter /opt/Qt
.
In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.
The installer will request your sudo password during installation.
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the folder qtchooser
in location /etc/xdg/
(the location used in this example).
For the current user, create the folder qtchooser
in location ~/.config/
.
Create a text file in the qtchooser
folder created in the previous step named default.conf
with the following contents:
/opt/Qt/5.11.1/gcc_64/bin
/opt/Qt/5.11.1/gcc_64/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib
Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
â gvgramazio
yesterday
Ok. I've added another answer using a PPA.
â gsxruk
yesterday
add a comment |Â
up vote
1
down vote
You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.
Once downloaded (the following assumes the download location is ~/Downloads):
Install Qt
cd ~/Downloads
chmod +x qt-unified-linux-x64-3.0.5-online.run
./qt-unified-linux-x64-3.0.5-online.run
In the "Installation Folder" screen, enter /opt/Qt
.
In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.
The installer will request your sudo password during installation.
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the folder qtchooser
in location /etc/xdg/
(the location used in this example).
For the current user, create the folder qtchooser
in location ~/.config/
.
Create a text file in the qtchooser
folder created in the previous step named default.conf
with the following contents:
/opt/Qt/5.11.1/gcc_64/bin
/opt/Qt/5.11.1/gcc_64/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib
Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
â gvgramazio
yesterday
Ok. I've added another answer using a PPA.
â gsxruk
yesterday
add a comment |Â
up vote
1
down vote
up vote
1
down vote
You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.
Once downloaded (the following assumes the download location is ~/Downloads):
Install Qt
cd ~/Downloads
chmod +x qt-unified-linux-x64-3.0.5-online.run
./qt-unified-linux-x64-3.0.5-online.run
In the "Installation Folder" screen, enter /opt/Qt
.
In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.
The installer will request your sudo password during installation.
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the folder qtchooser
in location /etc/xdg/
(the location used in this example).
For the current user, create the folder qtchooser
in location ~/.config/
.
Create a text file in the qtchooser
folder created in the previous step named default.conf
with the following contents:
/opt/Qt/5.11.1/gcc_64/bin
/opt/Qt/5.11.1/gcc_64/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib
You could install Qt using the installers provided by Qt. The open source installer can be downloaded here.
Once downloaded (the following assumes the download location is ~/Downloads):
Install Qt
cd ~/Downloads
chmod +x qt-unified-linux-x64-3.0.5-online.run
./qt-unified-linux-x64-3.0.5-online.run
In the "Installation Folder" screen, enter /opt/Qt
.
In the "Select Components" screen, choose the version you would like to install (Qt 5.11.1 used in this example) and tick the "Desktop gcc 64-bit" option.
The installer will request your sudo password during installation.
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the folder qtchooser
in location /etc/xdg/
(the location used in this example).
For the current user, create the folder qtchooser
in location ~/.config/
.
Create a text file in the qtchooser
folder created in the previous step named default.conf
with the following contents:
/opt/Qt/5.11.1/gcc_64/bin
/opt/Qt/5.11.1/gcc_64/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/Qt/5.11.1/gcc_64/lib
answered 2 days ago
gsxruk
610138
610138
Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
â gvgramazio
yesterday
Ok. I've added another answer using a PPA.
â gsxruk
yesterday
add a comment |Â
Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
â gvgramazio
yesterday
Ok. I've added another answer using a PPA.
â gsxruk
yesterday
Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
â gvgramazio
yesterday
Sorry, I forgot to mention one important thing: I'm configuring it on a docker container. This means that the solution shouldn't involve GUI.
â gvgramazio
yesterday
Ok. I've added another answer using a PPA.
â gsxruk
yesterday
Ok. I've added another answer using a PPA.
â gsxruk
yesterday
add a comment |Â
up vote
1
down vote
A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.
Add the PPA
sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt update
Install Qt
sudo apt install qt511-meta-full
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the following file in location /etc/xdg/qtchooser
.
For the current user, create the following file in location ~/.config/qtchooser
.
Create a text file in the chosen qtchooser folder named default.conf
with the following contents:
/opt/qt511/bin
/opt/qt511/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/qt511/lib
add a comment |Â
up vote
1
down vote
A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.
Add the PPA
sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt update
Install Qt
sudo apt install qt511-meta-full
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the following file in location /etc/xdg/qtchooser
.
For the current user, create the following file in location ~/.config/qtchooser
.
Create a text file in the chosen qtchooser folder named default.conf
with the following contents:
/opt/qt511/bin
/opt/qt511/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/qt511/lib
add a comment |Â
up vote
1
down vote
up vote
1
down vote
A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.
Add the PPA
sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt update
Install Qt
sudo apt install qt511-meta-full
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the following file in location /etc/xdg/qtchooser
.
For the current user, create the following file in location ~/.config/qtchooser
.
Create a text file in the chosen qtchooser folder named default.conf
with the following contents:
/opt/qt511/bin
/opt/qt511/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/qt511/lib
A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required.
Add the PPA
sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt update
Install Qt
sudo apt install qt511-meta-full
Configure the System
There are a couple of choices here depending on whether you want to configure the use of the new Qt version system wide or to the current user.
For system wide, create the following file in location /etc/xdg/qtchooser
.
For the current user, create the following file in location ~/.config/qtchooser
.
Create a text file in the chosen qtchooser folder named default.conf
with the following contents:
/opt/qt511/bin
/opt/qt511/lib
The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
Check the Configuration
qmake -v
If the configuration is working correctly you should see something like:
QMake version 3.1
Using Qt version 5.11.1 in /opt/qt511/lib
answered yesterday
gsxruk
610138
610138
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062046%2fhow-to-update-qt-from-5-5-1-to-5-9-5-on-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You need to either find a ppa or co.pile it yourself. Get a start and post back if you have problems
â Panther
2 days ago
@Panther I know that the command to add a ppa is something like
add-apt-repository ppa:<ppa_name>
and the I need is this. However, I don't know the ppa name nor how to search for it.â gvgramazio
2 days ago
google.com/search?q=ppa.qt5&oq=ppa.qt5
â Panther
2 days ago
@Panther Seriously, I appreciate when someone tries to make me understand a bit instead of giving to me a copy-paste solution. However, even with your link, I don't understand which is the name of Ubuntu 18 repository that has the version I need.
â gvgramazio
2 days ago
@Panther On anther system, with 18.04 I installed them at first try with
apt-get
. The problem is that on 16.04 I don't have the same packages.â gvgramazio
2 days ago