Installing the latest texlive via command line on ubuntu 18.04 LTS virtual machine

Today, I installed texlive by sudo apt-get install texlive-full.
Then I found out that's not the latest version, so I uninstalled it.

I have read some threads related to it, but I am getting more confused as I am a very beginner level user of ubuntu.
Kindly provide me step by step commands through which I can install the latest texlive 2020 from terminal.


You will get TeXLive 2019 on Ubuntu 18.04 LTS by using JonathonF PPA:

sudo add-apt-repository ppa:jonathonf/texlive-2019
sudo apt-get update
sudo apt-get install texlive

Another option is to install Ubuntu 20.04 LTS and use TeXLive 2020 from it.


As usual this PPA may be removed by the commands below:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:jonathonf/texlive-2019