How To Add New Repository To Apt In Linux

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/add-new-repository-apt-linux/
PINTEREST
PINTEREST
INSTAGRAM

Apt is mainstream package management tool. Apt is used by Debian, Ubuntu and a lot of different distributions. Package administration job can be done with Apt very easily. Installing new packages, removing packages, updating packages, resolving dependency of packages etc.

Big distributions like Debian, Ubuntu provides repositories. There are a lot of 3 party repositories provides uptodate and useful packages. How can we add these repositories to our Linux system?

Add Repository To The Sources.list

Sources.list holds repository informatin and configuration like repository package url or path. Repository usage type etc.

Add following line so the /etc/apt/sources.list file

  • deb means we want to add only binary packages from url
  • saucy is release of the distribution
  • universe enables community provided free packages too

Add Repository With Add-apt-repository

We have more practical way to add repository. Using add-apt-repository is more easier

  • Providing -y  will all questions yes

Four Main Repositories

There are four main repository effects installation of packages. All repository type includes different type of packages as described below

  • Main – Canonical-supported free and open-source software.

  • Universe – Community-maintained free and open-source software.

  • Restricted – Proprietary drivers for devices.

  • Multiverse – Software restricted by copyright or legal issues.

.Update Apt Cache To Get New Package List

We will update our repository caches to get new list of packages

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/add-new-repository-apt-linux/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  How To List All Users and Groups in Linux

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)