Announcement

Collapse
No announcement yet.

Install add-apt-repository on Debian 9 / Ubuntu 18.04/16.04

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Install add-apt-repository on Debian 9 / Ubuntu 18.04/16.04

    If you have a minimal installation of Debian 9 / Ubuntu 18.04 / Ubuntu 16.04, chances are you may not have commandadd-apt-repository present in your system. If you get the error “add-apt-repository command not found” while trying to add PPA repository, you’ll need to install add-apt-repository

    For those new to Debian package management, add-apt-repository is a command line tool used for adding Personal Package Archive (PPA ) in Debian family Linux distributions.

    If your system is missing add-apt-repository command, install the software-properties-common package by running the following command in your terminal:

    Code:
     
     sudo apt update sudo apt -y install software-properties-common dirmngr apt-transport-https lsb-release ca-certificates
    You can now add PPA repository with the syntax:
    Code:
     
     sudo add-apt-repository ppa:<PPA Name>
    The example below add PHP PPA repository
    Code:
     
     sudo add-apt-repository ppa:ondrej/php
    Once the PPA repository is added, update the package list and install your new package from the repository.
    Code:
     
     sudo apt update sudo apt install <package>
Working...
X