3 Command Line Tools To Install Deb Packages On Ubuntu, Debian And Linux Mint

by time news

2023-06-14 08:00:35

In this tutorial, you will learn how to install local software packages ( .DEB ) in Debian and its derivatives, such as Ubuntu y Linux Mint using three different command line tools, which are dpkg , apt , and where? .

This is useful for those new users who have migrated from Windows a Ubuntu o Linux Mint . The most basic problem they are facing is the installation of local software on the system.

However, Debian, Ubuntu y Linux Mint they have their own graphics software center to make it easier to install the software, but we’ll be looking forward to installing the deb packages via the terminal. (Apt is used for this)

1. Install the .deb package using the dpkg command

dpkg is a package manager for Debian and its derivatives, such as Ubuntu y Linux Mint. It is used to install, compile, remove and manage packages .deb. but unlike other Linux package management systems, it cannot automatically download and install packages with their dependencies.

To install a package .deb use the dpkg command with indicator -i along with the package name as shown.

$ sudo dpkg -i teamviewer_amd64.deb

If you get any dependency errors during installation or after installing and starting a program, you can use the following apt command to resolve and install dependencies using the prompt -fwhich tells the program to fix any missing dependencies.

$ sudo apt-get install -f

Remove Deb Packages Using dpkg Command

To remove a package .debuse the option -r or, if you want to remove all your files including configuration files, you can purge them with the option --purge that shows.

$ sudo dpkg -r teamviewer         [Quitar paquete]
$ sudo dpkg --purge teamviewer    [Eliminar paquete con archivos de configuración]

Remove package in Ubuntu

For more information on installed packages, read our article showing how to list all installed files from a .deb package.

2. Install the .deb package using the Apt command

The apt command is an advanced command line tool that offers installing new software packages, updating existing software packages, updating the package list index, and even updating the entire system. Ubuntu o Linux Mint .

It also offers apt-get and apt-cache command line tools for more interactive package management in Debian and their derivatives, such as systems Ubuntu y Linux Mint .

Essentially, apt-get o apt do not understand .debfiles, are designed to primarily handle package names (for example, teamviewer , apache2 , mariadb etc.) and recover and install files .deb associated with a package name, from a source specified in the file /etc/apt/sources.list .

The only trick to install a package .deb debian using apt-get o apt is to specify a relative or absolute local path ( ./if it is in the current directory) to the package; otherwise it will try to retrieve the package from remote sources and the operation will fail.

$ sudo apt install ./teamviewer_amd64.deb
$ sudo apt-get install ./teamviewer_amd64.deb

Install local package using apt-get on Ubuntu

Remove Deb packages using apt command

To remove a package .debuse the option remove or, if you want to remove all your files including configuration files, you can purge them with the option purge that shows.

$ sudo apt-get remove teamviewer
$ sudo apt-get purge teamviewer
O
$ sudo apt remove teamviewer
$ sudo apt purge teamviewer

3. Install the .deb package using the Gdebi command

where? is a small command line and GUI tool for installing local deb packages. Resolves and installs package dependencies on the fly. To install a package, use the following command.

$ sudo gdebi teamviewer_13.1.3026_amd64.deb

Install local packages using Gdebi on Ubuntu

To remove a package .deb installed from where? you can use the commands apt , apt-get o dpkg using option purge as shown.

$ sudo apt purge teamviewer
O
$ sudo apt-get purge teamviewer
O
$ sudo dpkg --purge visor de equipo

Install .deb packages using Gdebi GUI

The most recommended way for beginners to install files .deb it is through the Gdebi GUI installer. Just go to the directory where you downloaded the file and double click to install it as shown.

Install Deb Package Using Gdebi

That’s all! In this tutorial, we have explained three different command line tools to install or remove packages. .deb debian in Ubuntu y Linux Mint .

If you know of any other way to install local packages, please share with us using our comment section below.

#Command #Line #Tools #Install #Deb #Packages #Ubuntu #Debian #Linux #Mint

You may also like

Leave a Comment