HomeLinux3 Methods to Set up Deb Recordsdata on Ubuntu, Debian & Mint

3 Methods to Set up Deb Recordsdata on Ubuntu, Debian & Mint


On this tutorial, you’ll learn to set up native software program packages (.DEB) in Debian and its derivatives equivalent to Ubuntu and Linux Mint utilizing three completely different command line instruments and they’re dpkg, apt, and gdebi.

That is helpful to these new customers who’ve migrated from Home windows to Ubuntu or Linux Mint. The very fundamental downside they face is putting in native software program on the system.

Nevertheless, Ubuntu and Linux Mint have their very own Graphical Software program Middle for straightforward software program set up, however we will likely be trying ahead to putting in deb packages via the terminal manner.

1. Set up .deb Package deal Utilizing dpkg Command

Dpkg is a package deal supervisor for Debian and its derivatives equivalent to Ubuntu and Linux Mint. It’s used to put in, construct, take away, and handle .deb packages. however not like different Linux package deal administration methods, it can’t routinely obtain and set up packages with their dependencies.

To put in a .deb package deal, use the dpkg command with the -i flag together with the package deal identify as proven.

$ sudo dpkg -i teamviewer_amd64.deb
Install Local Package in Ubuntu
Set up Native Package deal in Ubuntu

Should you get any dependency errors whereas putting in or after putting in and launching a program, you should utilize the next apt command to resolve and set up dependencies utilizing the -f flag, which tells this system to repair damaged dependencies.

$ sudo apt-get set up -f

Take away Deb Packages Utilizing dpkg Command

To take away a .deb package deal use the -r choice or if you wish to take away all its recordsdata together with configuration recordsdata, you’ll be able to purge it utilizing the --purge choice as proven.

$ sudo dpkg -r teamviewer       [Remove Package]
$ sudo dpkg --purge teamviewer  [Remove Package with Configuration Files]
Remove Package in Ubuntu
Take away Package deal in Ubuntu

To know extra about put in packages, learn our article that exhibits checklist all recordsdata put in from a .deb package deal.

2. Set up .deb Package deal Utilizing Apt Command

The apt command is a sophisticated command-line instrument, which provides new software program package deal set up, current software program package deal upgradation, updating of the package deal checklist index, and even upgrading the entire Ubuntu or Linux Mint system.

It additionally provides apt-get and apt-cache command-line instruments for managing packages extra interactively on Debian and its derivatives equivalent to Ubuntu and Linux Mint methods.

Primarily, apt-get or apt don’t perceive .deb recordsdata, they’re designed to primarily deal with package deal names (for instance teamviewer, apache2, mariadb, and so forth..) they usually retrieve and set up .deb archives related to a package deal identify, from a supply specified within the /and so forth/apt/sources.checklist file.

The one trick to putting in a .deb Debian package deal utilizing apt-get or apt is by specifying a neighborhood relative or absolute path (./ if in present dir) to the package deal, in any other case it’s going to attempt to retrieve the package deal from distant sources and the operation will fail.

$ sudo apt set up ./teamviewer_amd64.deb
$ sudo apt-get set up ./teamviewer_amd64.deb
Install Local Package Using apt in Ubuntu
Set up Native Package deal Utilizing apt in Ubuntu
Install Local Package Using apt-get in Ubuntu
Set up Native Package deal Utilizing apt-get in Ubuntu

Take away Deb Packages utilizing apt Command

To take away a .deb package deal use the take away choice or if you wish to take away all its recordsdata together with configuration recordsdata, you’ll be able to purge it utilizing the purge choice as proven.

$ sudo apt-get take away teamviewer
$ sudo apt-get purge teamviewer
OR
$ sudo apt take away teamviewer
$ sudo apt purge teamviewer

3. Set up .deb Package deal Utilizing Gdebi Command

gdebi is a tiny command line and GUI instrument for putting in native deb packages. It resolves and installs package deal dependencies on the fly. To put in a package deal, use the next command.

$ sudo gdebi teamviewer_13.1.3026_amd64.deb
Install Local Packages Using Gdebi in Ubuntu
Set up Native Packages Utilizing Gdebi in Ubuntu

To take away a .deb package deal put in from gdebi, you should utilize apt, apt-get or dpkg instructions utilizing purge choice as proven.

$ sudo apt purge teamviewer
OR
$ sudo apt-get purge teamviewer
OR
$ sudo dpkg --purge teamviewer

Set up .deb Packages Utilizing Gdebi GUI

Essentially the most really useful manner for freshmen to putting in .deb recordsdata is thru the Gdebi GUI installer. Merely, go to the listing the place you’ve gotten downloaded the file and double-click to put in it as proven.

Install Deb Package Using Gdebi
Set up Deb Package deal Utilizing Gdebi

That’s It! On this tutorial, we’ve defined three completely different command line instruments for putting in or eradicating .deb Debian packages in Ubuntu and Linux Mint.

If you understand another manner of putting in native packages, do share with us utilizing our remark part under.

If You Recognize What We Do Right here On TecMint, You Ought to Think about:

TecMint is the quickest rising and most trusted neighborhood web site for any sort of Linux Articles, Guides and Books on the internet. Hundreds of thousands of individuals go to TecMint! to go looking or browse the 1000’s of revealed articles out there FREELY to all.

Should you like what you might be studying, please think about shopping for us a espresso ( or 2 ) as a token of appreciation.

Support Us

We’re grateful to your by no means ending help.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments