I installed ubuntu for the primary purpose of programming but turns out, many things (compilers, interpreters, etc...) are not the latest version in the Ubuntu Packages Database ready for installation.
Such as, if I wanted to install Python on my computer, I would do:
sudo apt update
apt search python
and do sudo apt install
for the latest version of python listed in the search result. But turns out, the latest version of Python is not there and also not in the Ubuntu Packages Search.
If I wanted to install GCC, I would do the above, but it simply does not have the latest version. The preinstalled FireFox is also not the latest version.
I know I can just simply build from source, but building GCC from source is too hard for me, for example, I have to install a lot of libraries for GCC to work and I don't know what is the ISO C++11 compiler which is mandatory for this installation, building GCC specifically has me to learn a lot of concepts, such as bootstrapping and configuration, of which I have no experience with whatsoever.
But installing GCC is such a necessity to build other things, and in addition, I need libraries, which some I will be using for building just this one software and never be used ever again but still takes up space in my computer, and removing it is also a maze.
What I am asking as an answer is:
How can I install the latest version of a software without building it or taking up significant space on my computer?
python3 --version
I get the answer "Python 3.11.2" for my Ubuntu product/system, but you may not be using the same Ubuntu product that I am, I cannot know as you've provided no details. – guiverc Mar 20 '23 at 11:11