Professional Documents
Culture Documents
LEARNING
Most Trending and Quality DevOps Cloud Automation
tutorials, guides and learning
SKIP TO CONTENT
• HOME
• BLOG
• DEVOPS ENGINEER
• HIRE ME
• TWITTER
• REDDIT
• DEVOPS NEWS
So In this Ultimate guide we will learn everything you should know about ubuntu
repositories , how to add apt-repository & PPA repositories and working with
ubuntu repository and apt commands.
Table of Content
1. What is ubuntu repository?
2. How to add a ubuntu repository?
3. Manually Adding apt-repository in ubuntu
4. Adding PPA Repositories
5. Working with Ubuntu repositories
6. How apt or apt-get command work with Ubuntu Repository
7. Conclusion
What is ubuntu repository?
APT repository is a network shared server or a local directory containing deb
packages and metadata files that are readable by the APT tools. When installing
packages using the Ubuntu Software Center or the command line utilities such
as apt or apt-get the packages are downloaded from one or more apt software
repositories.
On Ubuntu and all other Debian based distributions, the apt software
repositories are defined in the /etc/apt/sources.list file or in separate files
under the /etc/apt/sources.list.d/ directory.
The names of the repository files inside the /etc/apt/sources.list.d/ directory
must end with .list.
How to add apt-repository in ubuntu ?
add-apt-repository is basically a python script that helps in addition of
repositories in ubuntu.
Lets take a example to add a mongodb repository in ubuntu machine
• add-apt-repository utility is included in software-properties-
common package.
sudo apt update
sudo apt install software-properties-common
When you add a PPA repository the add-apt-repository command creates a new
file under the /etc/apt/sources.list.d/ directory.
Lets take a example of Addition of ansible PPA repository in ubuntu
machine
• PPA utility is included in software-properties-common package
similar to add-apt-repository
sudo apt update
sudo apt install software-properties-common
• Add PPA ansible Repository in the system.
1sudo apt-add-repository --yes --update ppa:ansible/ansible
2# PPA is Personal Package Archive
/etc/apt/sources.list.d
• Lets run apt update command again to verify if ubuntu still requires
any software to be upgrade. Command output should look like “All
packages are up to date”
apt update
Conclusion
In this tutorial we learnt everything about ubuntu repositories and how to add
various repositories and how to work with them . Finally we saw how apt
command works with ubuntu repositories.
This Ultimate Guide will give you a very strong understanding of package
management which is most important thing for a Linux administrator. Hope you
liked this tutorial and was helpful. Please share.
• LinkedIn
Share this:
• Share
•
• More
•
Loading...
Related
Post navigation
← How to Connect Windows to Linux and Linux to Windows using PowerShell 7 SSH Remoting ( PS
Remoting Over SSH)
How to Launch AWS Redshift Cluster using AWS Management Console in Amazon account. →
Leave a Reply
The Most Trending, Quality DevOps Cloud articles, Automation guides, series, News,
Podcasts, and videos. Easy and happy Learning! – Founder (shanky)
Search
Search for:
CATEGORIES
• Ansible (5)
• Apache (1)
• AUTOMATION (8)
• AWS (18)
• AWS EBS (1)
• AWS EC2 (2)
• AWS EKS (1)
• AWS IAM (4)
• AWS Keys (1)
• aws rds (1)
• AWS S3 (2)
• Bash Scripting (1)
• CLOUD (2)
• Computer (1)
• DEVOPS (5)
• DevOps News (1)
• Docker (6)
• Elastic Block Store (1)
• Git (2)
• GitLab (1)
• Grafana (1)
• Groovy (1)
• Jenkins (1)
• kubernetes (8)
• LINUX (5)
• Monitoring (1)
• Node.js (1)
• Powershell (3)
• PowerShell Remoting (2)
• Prometheus (1)
• Python (5)
• Python3 (2)
• Shell scripting (1)
• Solr (1)
• SSH (1)
• Terraform (16)
• TOMCAT (1)
• Ubuntu Repository (1)
• Windows (2)
Advertisements
FOLLOW US
• LinkedIn
•
Advertisements
Advertisements
Advertisements
Advertisements
ARCHIVES
Archives
BLOG STATS
• 204,263
Advertisements hits
Advertisements
TRANSLATE
Powered by Translate
FOLLOW ME ON TWITTER
Advertisements
Advertisements
TOP POSTS & PAGES
•
How to create Secrets in AWS Secrets Manager using Terraform in Amazon account.
How to Setup AWS WAF and Web ACL using Terraform on Amazon Cloud
Search
Search for:
•
Close and accept
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy