add-apt-repository command can be used to add repository in ubuntu.
To install, run
apt-get install software-properties-common python-software-properties
Example
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94 add-apt-repository https://dl.hhvm.com/ubuntu
Leave a Reply