In this post I am going to tell you how you can install deb from terminal in Ubuntu easily.
Before we began here is what is deb...
Packages are manually installed via the
Before we began here is what is deb...
Packages are manually installed via the
dpkg
command (Debian Package Management System). dpkg
is the backend to commands like apt-get
and aptitude
, which in turn are the backend for GUI install apps like the Software Center and Synaptic.Install deb Package:
You simply need to add the following command in the terminal
sudo dpkg -i DEB_PACKAGE
For example if the package file is called askubuntu_2.0.deb
then you should do sudo dpkg -i askubuntu_2.0.deb
. If dpkg
reports an error due to dependency problems, you can run sudo apt-get install -f
to download the missing dependencies and configure everything.
Remove a Package:
sudo dpkg -r PACKAGE_NAME
For example if the package is called
askubuntu
then you should do sudo dpkg -r askubuntu
.Reconfigure a Package:
sudo dpkg-reconfigure PACKAGE_NAME
This is useful when you need to reconfigure something related to said package. Some useful examples it the
keyboard-configuration
when you want to enable the Ctrl+Alt+Backspace in order to reset the X server, so you would the following:sudo dpkg-reconfigure keyboard-configuration
Another great one is when you need to set the Timezone for a server or your local testing computer, so you use use the
tzdata
package:sudo dpkg-reconfigure tzdata
Install a .deb from terminal in Ubuntu | Step By Step | Reconfigure and Remove a package
Reviewed by Sumit Bishnoi
on
November 28, 2019
Rating:
No comments: