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 2 Actions, They are dpkg-query, dpkg-deb
dpkg-query Actions :
To Install a Pacakge
To Remove a Package
To Remove a Package and its Configuration files
To List all Installed Packages
Here less = fix in a page to scroll
To check Wether the package installed are not
To check the Package Wether installed are not and if there is package installed it need to get launched
To see Wether the package installed or not.
And this will show the Location were else it have installed Here -S (Captial S) to Search the package installed or not
To install a *.deb Pacakge from a Specified location
Here -R is recursive.(Recursively handle all regular files matching pattern *.deb found at specified directories and all of its subdirectories)
To show the Pacakge details
Here -p (small p) will show the pacakge infos
To View the Content of a Package
Here -c (Small c ) is to show the Content
To Extract the *.deb Package file.
Here -x (Small x) stands for Extract
To Extract and display the filenames contained by a package.
Here -X (Capital X) Will Display the Content with Extraction
To Display the Information About a Package
Here -I is Information
Reconfigure an already installed package.
dpkg-reconfigure reconfigures packages after they have already been installed. Pass it the names of a package or packages to reconfigure. It will ask configuration questions, much like when the package was first installed.
This will reconfigure the postifx same as while you installed at first time.
Need to know More About dpkg commands ? Have a Look into manual
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 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?