How do I install a
.deb file via the command line?
Packages are manually installed via the
Something along the lines of:
But of course the easiest ways to install a package would be, first, the GUI apps (Synaptic, Software Center, etc..), followed by the terminal commands
Since dpkg is the base, you can use it to install packaged directly from the command line.
INSTALL A PACKAGE
For example if the package file is called
REMOVE A PACKAGE
For example if the package is called
Debian (.deb) packages are the packages that are used in Ubuntu. You can install any .deb package in your system. .deb files can generally be installed from your file manager (Nautilus) merely by clicking on them, since file associations with the default installer is already set in Ubuntu. These instructions are for those who wish to install packages from the command-line terminal (Terminal).
To install a downloaded Debian (Ubuntu) package (.deb): Open Terminal and type
To remove a Debian (Ubuntu) package (.deb):
To Reconfigure/Repair an installed Debian (Ubuntu) package (.deb):
My favourite is GDebi, available from both terminal/shell or graphical desktop.
I usually associate
For command-line run
There are two actions, they are
Install a package
Remove a package
Remove a package and its configuration files
List all installed packages.
You can pipe the command to
Check if the package is installed or not
Check if the package is installed or not, and if it is, launch it:
See whether a package is installed or not
And this will show the location where the package will be installed.
Install a *.deb package from a specified location
Show package details
View the content of a package
A handy tip when installing a program like Libreoffice which has multiple .deb files in a folder is to use.
Create your own script installer
Make the script executable with
Then move it to some dirs in your PATH or add the current directory to your PATH.
I'm going to move it to /usr/bin
Now you can install any
The added value of this method is the solving the dependencies problem, since mostly you'll face some problems when you install a
protected by Community♦ Feb 20 '14 at 20:57
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?