There are two way of doing this using the command line To install any package, just open a terminal ( Ctrl + Alt + T ) and type sudo apt-get install
Repository is a place where software is stored
Files associated with a package management system. Every Linux distribution comes with a package management system, but they are not all the same.
The most common method of installing apps from the command line is through software repositories using what's called a package manager. All Linux apps are distributed as packages.
What other apps it may depend on
A package management system is comprised of sets of tools and file formats that are used together to install, update, and uninstall Linux apps.
The most common package management systems are .deb .rpm .tar
- Red Hat, CentOS, and Fedora all use the rpm system (.rpm files)
- Debian, Ubuntu, Mint use dpkg (.deb files)
- Arch Linux uses nothing but tarballs (.tar files)
- Gentoo Linux uses a system called Portage
Nothing more than plain old archive files (like .zip) that contain an application's code, instructions on how to install it, dependencies , and where its configuration files should be placed. The software that reads and executes all of those instructions is called a package manager.
A package manager keeps track of what software is installed on your computer, and allows you to easily install new software, upgrade software to newer versions, or remove software that you previously installed.
Stands for Debian package. It is the default package manager on Ubuntu. Debian-based distributions all use .deb files and the dpkg package management system. dpkg is a command line way to install from a .deb or remove already installed packages.The downside is that dpkg does not install missing dependency packages automatically.
Syntax for installing deb-files
sudo apt install path_to_deb_file
sudo dpkg -i path_to_deb_file
example:
sudo apt install ./code_1.64.2-1644445741_amd64.deb
we can install the required dependencies with a single command, assuming that they are available in Ubuntu’s package repository. Just run this command to install the dependencies:
sudo apt install -f