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.
protected by Community♦ Feb 20 '14 at 20:57
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?