• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How To Add Apt Repository In Ubuntu & Debian

Written by Rahul, Updated on April 20, 2018
Ubuntu add-apt-repository, apt

This tutorial have describes two methods to configure Apt repository on your Ubuntu & Debian systems. The first method uses the add-apt-repository command to configure the repository for you. You can also use its symlink command apt-add-repository. In any case, the command doesn’t exists on your system. The tutorial add-apt-repository command not found will help you.

1. Using add-apt-repository command

Use the add-apt-repository (or symlink apt-add-repository) command to add launchpad PPA to your system. You just need to provide launchpad reference address as the following command.

sudo add-apt-repository ppa:libreoffice/ppa

You can fixed error add-apt-repository command not found if occurred.

For other hosted repositories, can be also configured by providing its reference as below:

add-apt-repository 'deb http://archive.getdeb.net/ubuntu wily-getdeb games'

2. Create Files Manually

You can just create a file in /etc/apt/sources.list.d directory. The file name must end with .list extension. The apt package manager also read repository configuration files from here.

For example:

vim /etc/apt/sources.list.d/games.list

Add the repository paths as below.

deb http://archive.getdeb.net/ubuntu wily-getdeb games

You can add multiple repository references in a single file as required.

Share it!
Share on Facebook
Share on Twitter
Share on Google+
Share on Reddit
Share on Tumblr
Rahul
Rahul
Connect on Facebook Connect on Twitter Connect on Google+

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Related Posts

  • How To Exclude Packages from Apt-Get Upgrade

    April 2, 2017
  • (Resolved) add-apt-repository command not found – Ubuntu & Debian

    March 29, 2015

1 Comment

  1. Cheapcialis Reply to Cheapcialis
    April 21, 2018 at 1:53 pm

    Thanks for visiting Deb.

Leave a Reply

Cancel reply

Popular Posts

  • How To Install Zabbix Agent on Debian 9/8
  • How to Install and Configure Squid Proxy on Debian 9
  • How To Install Wine 3 on Debian 9 (Stretch)
  • How to Remove “public/index.php” from URL in Laravel
  • How to Install Swift on Ubuntu 18.04 LTS
All rights reserved. © 2013-2018 TecAdmin.net. This site uses cookies. By using this website you agree our term and services