Lesson 08 - Package Management
Lesson 08 - Package Management
Package Management
Learning Objectives
Install PPA
Repository
A repository can be defined as a central storage area for all software packages.
The repository list can be found in the /etc/apt/sources.list directory of Ubuntu OS.
Types of Repositories
• Main
• Restricted
• Universe
• Multiverse
Types of Repositories
This is the default repository and all the packages in this are free.
Main
• In case the software packages are released in a .deb file format, there is no need to use the repository
commands such as apt or apt-get.
• Use the command $ sudo dpkg -i <package name> to directly install the software, and if there are any
dependency failures, use the command $ sudo apt-get install -f.
Introduction to apt/apt-get Command
Update will check the availability of new versions of a given package, whereas
upgrade will update the packages to a new version.
Introduction to PPA
A. Media
B. Repository
C. Cloud
D. None of above
Knowledge
Check
Which among the following is used to describe the storage space of software packages?
1
A. Media
B. Repository
C. Cloud
D. None of above
A. /etc
B. /home
C. /etc/apt/source.list
D. /proc
Knowledge
Check
Which directory contains the URL for a repository?
2
A. /etc
B. /home
C. /etc/apt/source.list
D. /proc
The file or directory /etc/apt/source.list contains the list of repositories available for download.
Knowledge
Check
Which command is used to install software packages in Ubuntu?
3
A. rpm
B. install
C. apt
D. download
Knowledge
Check
Which command is used to install software packages in Ubuntu?
3
A. rpm
B. install
C. apt
D. download
B. Non-Ubuntu packages
C. tar files
D. CLI commands
Knowledge
Check
What does PPA represent?
4
B. Non-Ubuntu packages
C. tar files
D. CLI commands
PPA represent the packages that are released by the developer without any testing for publishing.